Get started
The eroq API
One base URL, one bearer key, one unit of account. Every model — roleplay chat, image, video, speech, transcription — sits behind the same conventions, and every call has a credit price you can read off the pricing table.
Quickstart
Key → call → reply, in five minutes.
Authentication
Bearer keys and how to keep them boring.
Credits
One prepaid unit, flat prices, no token math.
Make a request
The request and response shapes follow the OpenAI convention where one exists (chat/completions, images/generations, audio/speech), so existing client code usually ports by changing three strings: the base URL, the key, and the model id.
curl https://eroq.ai/v1/chat/completions \
-H "Authorization: Bearer $EROQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "eroq-rp-plus",
"context": "Mira: sardonic starship mechanic, dry humor, hates small talk. Scene: engine bay, mid-shift.",
"messages": [
{
"role": "user",
"content": "The reactor is making that noise again."
}
]
}'{
"id": "cmpl_9f2e17ab",
"object": "chat.completion",
"model": "eroq-rp-plus",
"choices": [{
"index": 0,
"message": {
"role": "assistant",
"content": "*slides out from under the manifold, wiping grease on her overalls* That noise is the reactor's way of saying you skipped the coolant flush. Again."
},
"finish_reason": "stop"
}],
"usage": { "credits_spent": 3, "credits_remaining": 997 }
}See a call happen
No key yet? Run the example — it replays a real exchange from the docs' own data, entirely in your browser.