OpenAI-compatible API for Claude, GPT, Gemini and DeepSeek
Point the official OpenAI SDK at https://api.voicica.ai/platform/v1, use a Voicica key, and call 6 chat models from DeepSeek, Anthropic, OpenAI and Google. Streaming and JSON output work on every model; tools and images on 5 of them.
Pay as you go from $5 · No subscription · No free trial · Failed calls are not charged
All chat models
Prices in API credits per 1M tokens (1 credit = $0.006), checked December 5, 2026. GET /models is always current. Streaming works on every model.
| Model | API ID | Input | Cached input | Output | JSON | Tools | Images | Reasoning control | Backup route |
|---|---|---|---|---|---|---|---|---|---|
| DeepSeek V4.1 Flash | deepseek/deepseek-v4.1-flash | 24 (≈ $0.14) | 0.5 (≈ $0.003) | 95 (≈ $0.57) | Native | Yes | Yes | reasoning_effort | — |
| Claude Opus 5.5 | anthropic/claude-opus-5.5 | 640 (≈ $3.8) | 64 (≈ $0.38) · cache write 800 (≈ $4.8) | 3,200 (≈ $19) | Checked and retried (no streaming with JSON) | Yes | Yes | Thinking on / off | Yes, text-only requests |
| Claude Sonnet 5.5 | anthropic/claude-sonnet-5.5 | 320 (≈ $1.9) | 32 (≈ $0.19) · cache write 400 (≈ $2.4) | 1,600 (≈ $9.6) | Checked and retried (no streaming with JSON) | Yes | Yes | Thinking on / off | Yes, text-only requests |
| Claude Haiku 5.5 | anthropic/claude-haiku-5.5 | 16 (≈ $0.096) | 1.6 (≈ $0.0096) · cache write 20 (≈ $0.12) | 80 (≈ $0.48) | Checked and retried (no streaming with JSON) | Yes | Yes | Thinking on / off | Yes, text-only requests |
| GPT-6.2 Sol | openai/gpt-6.2-sol | 120 (≈ $0.72) | 6 (≈ $0.036) | 600 (≈ $3.6) | Native | Yes | Yes | reasoning_effort | — |
| Gemini 3.8 Flash | google/gemini-3.8-flash | 45 (≈ $0.27) | 45 (≈ $0.27) | 225 (≈ $1.4) | Native | No | No | No | Yes |
- Claude: when the backup route answers a text-only request, it is billed at that route's price, shown in GET /models as pricing.fallback (Claude Opus 5.5: 320 / 1,600 in / out; Claude Sonnet 5.5: 160 / 800 in / out; Claude Haiku 5.5: 12 / 60 in / out).
- Context length and max output are listed per model in GET /models where the provider publishes them (GPT-6.2 Sol: 1,050,000 / 128,000 tokens).
- Parameters a model ignores (for example temperature on DeepSeek V4.1 Flash) are listed in unsupported_params and reported in every response.
Every model with the OpenAI SDK
DeepSeek V4.1 Flash with the OpenAI SDK
DeepSeek's model through chat/completions, with streaming, images, tools, native JSON output and reasoning_effort.
deepseek/deepseek-v4.1-flash
Claude Opus 5.5, Sonnet 5.5 and Haiku 5.5 with the OpenAI SDK
Anthropic's models through chat/completions, with streaming, images, tools and a thinking switch. Prompt caching works on long or marked system prompts. JSON output is checked and retried, so use it without streaming.
anthropic/claude-opus-5.5anthropic/claude-sonnet-5.5anthropic/claude-haiku-5.5
GPT-6.2 Sol with the OpenAI SDK
OpenAI's model through chat/completions, with streaming, a 1,050,000-token context, images, tools, native JSON output and reasoning_effort.
openai/gpt-6.2-sol
Gemini 3.8 Flash with the OpenAI SDK
Google's model through chat/completions, with streaming and native JSON output. Images and tools are not available on this model.
google/gemini-3.8-flash
Code
from openai import OpenAI # pip install openai
client = OpenAI(
base_url="https://api.voicica.ai/platform/v1",
api_key="vca_your_key_here", # better: os.environ["VOICICA_API_KEY"]
timeout=360,
)
for model in ["deepseek/deepseek-v4.1-flash", "anthropic/claude-sonnet-5.5", "google/gemini-3.8-flash"]:
resp = client.chat.completions.create(
model=model,
messages=[{"role": "user", "content": "Give me three titles for a video about night markets."}],
)
print(model, resp.choices[0].message.content)
print(resp.model_extra["credits"]) # API credits this call cost
curl https://api.voicica.ai/platform/v1/chat/completions \
-H "Authorization: Bearer vca_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic/claude-haiku-5.5",
"messages": [{"role": "user", "content": "Write a four-line poem about rain."}],
"stream": true,
"stream_options": {"include_usage": true}
}'
# Server-sent events; the last chunk carries usage and credits
JSON schema, tools, images, streaming and retries are in the docs.
FAQ
Is it really OpenAI-compatible?
Yes, for chat: POST /chat/completions and GET /models follow the OpenAI format, so the official OpenAI SDKs work with only base_url, api_key and the model ID changed. Image, video and voice have their own async endpoints.
Can I call Claude with the OpenAI SDK?
Yes. Use anthropic/claude-opus-5.5, anthropic/claude-sonnet-5.5 or anthropic/claude-haiku-5.5 as the model. Images, tools, streaming and JSON output work; JSON output is checked and retried, so it needs stream: false.
Does Gemini work with the OpenAI SDK here?
Yes: google/gemini-3.8-flash supports streaming and JSON output through chat/completions. Images and tools are not available on it.
How is chat priced?
Per million input and output tokens, in API credits ($0.006 each); cached input is cheaper on most models. Every response includes the credits it cost.
What happens when a model's provider is down?
Our server retries provider errors for you. Claude (text-only requests) and Gemini also switch to a backup route automatically, same model. A failed call is not charged, and every response, including errors, has an X-Request-Id.
Do you store my prompts?
No. We don't store or log prompts or replies, only usage metadata (key, model, status, tokens, credits) for billing.
Related
Get your API key
Top up from $5, create a key and call Claude, GPT, Gemini and DeepSeek in a few minutes.
Model names are trademarks of their owners (DeepSeek, Anthropic, OpenAI, Google). Voicica provides access to these models through APIs and is not affiliated with or endorsed by them.