# eroq API documentation

> One base URL (https://eroq.ai/v1), one bearer key, one unit of account (credits). Uncensored roleplay chat, image, video, speech, transcription and NSFW-friendly storage behind OpenAI-style conventions.

## Guides

- https://eroq.ai/docs/quickstart.md — Quickstart: First call in five minutes.
- https://eroq.ai/docs/authentication.md — Authentication: API keys and how to keep them safe.
- https://eroq.ai/docs/credits.md — Credits & billing: How metering works, packs, refunds on failure.
- https://eroq.ai/docs/streaming.md — Streaming: Server-sent events for chat.
- https://eroq.ai/docs/errors.md — Errors: Error shape, codes, and how to handle 402.
- https://eroq.ai/docs/rate-limits.md — Rate limits: Per-key caps and the Retry-After header.
- https://eroq.ai/docs/agents.md — Build with AI agents: llms.txt, OpenAPI, per-page markdown — docs your copilot can eat.

## Reference

- `POST /v1/chat/completions` — Run a conversation turn against RP+ or RP mini. Credits: RP+ 3 · RP mini 1 per completion · +2 per attached image. Markdown: https://eroq.ai/docs/chat.md
- `POST /v1/images/generations` — Generate a 1024×1024 image from a text prompt. Credits: 10 per image · +2 with store: true. Markdown: https://eroq.ai/docs/images.md
- `POST /v1/videos/generations` — Generate a short 720p clip from a text prompt. Credits: 100 for 5s · 180 for 10s · + storage with store: true. Markdown: https://eroq.ai/docs/video.md
- `POST /v1/audio/speech` — Synthesize speech from text. Returns MP3 audio. Credits: 3 per 100 characters. Markdown: https://eroq.ai/docs/speech.md
- `POST /v1/audio/transcriptions` — Transcribe an audio file to text. Credits: 5 per request. Markdown: https://eroq.ai/docs/transcriptions.md
- `POST /v1/storage/objects` — Upload a file to the eroq Store and get a CDN URL back. Credits: 2 per started 10MB, one-time. Markdown: https://eroq.ai/docs/storage.md
- `GET /v1/storage/objects` — List the account's stored objects, newest first. Credits: free. Markdown: https://eroq.ai/docs/storage-list.md
- `DELETE /v1/storage/objects/{id}` — Delete a stored object from the CDN. Credits: free. Markdown: https://eroq.ai/docs/storage-delete.md
- `GET /v1/models` — The model catalogue with credit pricing. Credits: free. Markdown: https://eroq.ai/docs/models.md
- `GET /v1/account` — Balance and usage totals for the calling key. Credits: free. Markdown: https://eroq.ai/docs/account.md
---
Canonical: https://eroq.ai/docs/ · Index for agents: https://eroq.ai/llms.txt · OpenAPI: https://eroq.ai/openapi.json
