omni-standard×1
Cost-efficient default usage
OpenAI-compatible chat completions, API key authentication, usage value billing, and model multipliers in one API gateway.
Compatibility note: Omni API currently supports OpenAI-compatible Chat Completions only. Responses API, Assistants API, tool calling, image generation, file uploads, and built-in browsing are not supported yet.
Sign up at omniquasar.com to receive $5.00 usage value and create an API key. Verify a payment method to receive a free one-time $20.00 bonus.
https://omniquasar.com/api/proxy/v1curl -X POST https://omniquasar.com/api/proxy/v1/chat/completions \
-H "Authorization: Bearer omni_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"model": "omni-fast",
"messages": [{"role": "user", "content": "Hello!"}]
}'Use your existing OpenAI SDK shape. Replace the base URL and use an Omni API key.
curl -X POST https://omniquasar.com/api/proxy/v1/chat/completions \
-H "Authorization: Bearer $OMNI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "omni-fast",
"messages": [{"role": "user", "content": "Hello!"}]
}'Keep API keys out of source code and reuse the same base URL across local scripts, servers, and workers.
OMNI_API_KEY=omni_your_key_here
OMNI_BASE_URL=https://omniquasar.com/api/proxy/v1All API requests require an API key passed as a Bearer token in the Authorization header.
Authorization: Bearer omni_your_key_hereomni_.Choose a model based on your quality and cost requirements.
omni-standard×1
Cost-efficient default usage
omni-fast×2
Fast general requests
omni-highest×10
Highest-quality reasoning tasks
Usage is shown as USD value and metered internally in credits based on billable tokens: input tokens and output tokens. If the upstream provider reports cache creation or cache read tokens separately, Omni folds them into input tokens before billing; they are not billed as a separate third token category.
Formula: usage value = billable-token tier base value × model multiplier
| Billable Tokens | Base Credits | Base usage value |
|---|---|---|
| Billable Tokens<= 16,000 | Base Credits1 | Base usage value$1.00 |
| Billable Tokens16,001 - 32,000 | Base Credits2 | Base usage value$2.00 |
| Billable Tokens32,001 - 128,000 | Base Credits5 | Base usage value$5.00 |
| Billable Tokens> 128,000 | Base Credits10 | Base usage value$10.00 |
| Option | Cost | Usage value |
|---|---|---|
| OptionGoogle signup | Cost$0 | Usage value$5.00 usage value |
| OptionPayment verification | Cost$0 | Usage value$20.00 one-time bonus |
| OptionFirst purchase paid top-up | Cost$0.99 | Usage value5 credits · $5.00 usage value · first purchase only |
| OptionSmall top-up | Cost$9.99 | Usage value10 credits · $10.00 usage value · one-time purchase |
| OptionStandard top-up | Cost$19.99 | Usage value22 credits · $22.00 usage value · one-time purchase |
| OptionPower top-up | Cost$49.99 | Usage value60 credits · $60.00 usage value · one-time purchase |
Cancelled or interrupted streaming requests
Once a request is dispatched to the model, cancelling it or dropping the connection mid-stream does not stop billing. Only requests that fail due to platform-side errors are free of charge.
invalid_request_error or forwarded to the upstream compatibility layer and returned as upstream_error; do not rely on unsupported OpenAI features.POST https://omniquasar.com/api/proxy/v1/chat/completions| Parameter | Type | Required | Description |
|---|---|---|---|
Parametermodel | Typestring | RequiredYes | Descriptionomni-fast, omni-standard, or omni-highest |
Parametermessages | Typearray | RequiredYes | DescriptionArray of {role, content} objects in OpenAI format |
Parameterstream | Typeboolean | RequiredNo | DescriptionEnable SSE streaming |
Parametermax_tokens | Typeinteger | RequiredNo | DescriptionMaximum tokens in response |
Parametertemperature | Typenumber | RequiredNo | DescriptionSampling temperature 0-2 |
curl -X POST https://omniquasar.com/api/proxy/v1/chat/completions \
-H "Authorization: Bearer omni_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"model": "omni-fast",
"messages": [{"role": "user", "content": "Hello!"}]
}'{
"id": "chatcmpl-xxx",
"model": "omni-fast",
"choices": [{
"message": { "role": "assistant", "content": "Hello! How can I help?" },
"finish_reason": "stop"
}],
"usage": { "prompt_tokens": 10, "completion_tokens": 12 }
}curl -X POST https://omniquasar.com/api/proxy/v1/chat/completions \
-H "Authorization: Bearer omni_your_key_here" \
-H "Content-Type: application/json" \
-d '{"model":"omni-fast","messages":[{"role":"user","content":"Hello!"}],"stream":true}'data: {"choices":[{"delta":{"content":"Hello"}}]}
data: {"choices":[{"delta":{"content":"!"}}]}
data: [DONE]Note: Omni API is powered by a stack of Claude models working together. When streaming is enabled, the connection is kept alive with SSE heartbeats during processing.
| HTTP Status | Meaning | Resolution |
|---|---|---|
| HTTP Status400 | MeaningInvalid request, invalid model, invalid max_tokens, or unsupported request field | ResolutionCheck model and request payload |
| HTTP Status401 | MeaningMissing, invalid, or revoked API key | ResolutionCheck your key in the Developer Console |
| HTTP Status402 | MeaningInsufficient usage balance | ResolutionTop up usage value in the dashboard |
| HTTP Status404 | MeaningEndpoint not found or unsupported API surface | ResolutionUse the supported chat completions endpoint |
| HTTP Status413 | MeaningRequest body too large | ResolutionReduce request size before retrying |
| HTTP Status429 | MeaningRate limit or retryable upstream response | ResolutionWait for Retry-After, then retry with backoff |
| HTTP Status500 | MeaningInternal gateway error | ResolutionRetry later and include x-request-id if contacting support |
| HTTP Status503 | MeaningService temporarily unavailable | ResolutionRetry after a short wait |
Retryable upstream failures, including upstream 502 responses, are normalized to 429 by the proxy so clients can use one backoff path.
{
"error": {
"message": "Insufficient credits",
"type": "invalid_request_error",
"param": null,
"code": "insufficient_credits"
}
}Every proxy response includes an x-request-id header. Include that value when contacting support.
When contacting support, include:
Retry policy
For 429 and 503 responses, retry with exponential backoff. If a Retry-After header is present, wait at least that long before retrying.
Start with Google, create an API key in the Developer Console, then optionally verify a payment method for the extra bonus.