Skip to content
ReferenceCompatibility matrix

Compatibility, surface by surface

Know exactly which OpenAI, Anthropic, Gemini, and media-shaped routes are production-ready.

Compatibility matrix

Protocol surfacePublic product-key statusGuidance
POST /v1/chat/completionsStableUse for text/chat models across the routed catalog.
GET /v1/modelsLimitedAuthenticated non-admin keys intentionally receive only an opaque auto entry. Use the public catalog/pricing feed for discovery.
POST /v1/messagesProvider-specificRequires a true Anthropic-wire target. It is not a general translation layer across the current upstream provider pool.
POST /v1/messages/count_tokensNot a product-key surfaceRegistered legacy handler; do not rely on it.
POST /v1/responses and Responses resourcesNot a product-key surfaceUse Chat Completions. A route name alone does not establish Responses semantics.
POST /v1/embeddingsNot release-readyA product handler is registered, but the endpoint-kind wiring does not currently meet the stable contract.
POST https://api.impossi.build/v1/images/generationsLimitedVerified end to end with product keys: prompt in, generated image bytes out, settled cost debited per image delivered. Select an image-kind model from the public catalog.
POST https://api.impossi.build/v1/audio/speechLimitedVerified end to end for text-to-speech: text in, audio bytes out, billed per character or audio second at the model's catalog unit.
POST https://api.impossi.build/v1/videos + GET https://api.impossi.build/v1/videos/:id + GET https://api.impossi.build/v1/videos/:id/contentLimitedVerified end-to-end async job flow: create returns a queued job, polling reaches completed with a result_url and the settled per-run charge, and the content route returns the video bytes to the same API key. Video is a job API; there is no streaming response.
POST https://api.impossi.build/v1/audio/transcriptionsNot release-readyRegistered, but transcription models are catalogued without a routable billing unit yet, so requests cannot select them.
Rerank, moderationNot release-readyRegistered paths do not currently have a verified end-to-end product model-selection path.
Legacy completions, files, batches, fine-tuning, realtimeNot a product-key surfaceLegacy gateway handlers are intentionally isolated from public product routing.
Gemini generateContentNot implementedGemini-family models are accessed through Chat Completions, not a native Gemini route.

Media generation

Image and speech are single-shot POSTs that return the output inline; video is a small async job flow. All three are billed at the settled cost in the model's catalog unit (per image, per character or audio second, or per run), and model IDs come from the public catalog (/pricing.json carries kind: image, audio_speech, video).

Image

Image: returns data[0].b64_json (or data[0].url with response_format: "url"):

bash
curl https://api.impossi.build/v1/images/generations \
  -H "Authorization: Bearer $SINGULAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"2dn-pony-v2","prompt":"a tiny flat lighthouse icon","n":1}'

A url in data[] is always a data: URL that holds the image itself (for example data:image/png;base64,...), never a link to another host. Decode it the same way as b64_json; there is nothing to download afterwards.

Singular retrieves every image before it answers. You are billed only for the images in data[]: an image that cannot be retrieved is left out and not billed. When none of them can be retrieved, the call fails with 502 and code image_result_unavailable, and you are not charged:

json
{"error":{"message":"The generated image could not be retrieved. You were not charged.","type":"upstream_error","code":"image_result_unavailable"}}

Send the request again to retry; it is billed as a new request.

Speech

Speech: returns audio bytes directly:

bash
curl https://api.impossi.build/v1/audio/speech \
  -H "Authorization: Bearer $SINGULAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gpt-4o-mini-tts","input":"Hello from Singular.","voice":"alloy"}' \
  --output speech.mp3

Video

Video: create a job, poll it until status is completed or failed, then download the video with the same API key (the per-run charge applies once the job completes):

bash
# 1. Create the job: 202 Accepted, {"id":"vid_...","status":"queued"}
curl -X POST https://api.impossi.build/v1/videos \
  -H "Authorization: Bearer $SINGULAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"wan-video-22-turbo","prompt":"a paper boat drifting across a calm pond","resolution":"480p"}'

# 2. Poll the job until status is completed or failed
curl https://api.impossi.build/v1/videos/<job-id> \
  -H "Authorization: Bearer $SINGULAR_API_KEY"

# 3. Download the finished video with the same key
curl https://api.impossi.build/v1/videos/<job-id>/content \
  -H "Authorization: Bearer $SINGULAR_API_KEY" \
  --output video.mp4

A polled job carries these fields:

FieldMeaning
statusqueued, processing, completed, or failed. A job that has not finished 24 hours after it was created fails with timeout.
result_urlnull until the job is completed, then the address of the job's content route (see below).
errornull, or one of the fixed codes in the table below once the job has failed.
error_messagenull, or a short fixed sentence that goes with error and is safe to show to users. Branch on error, never on this text.
cost_usdThe settled per-run charge once the job is completed. A failed job is not charged: its hold is released and cost_usd stays 0. Before a job finishes, 0 only means nothing is settled yet.
id, object, model, params, created_at, updated_atThe job as submitted; object is "video".

A job is visible only to the API key that created it; any other key gets 404. POST accepts an optional Idempotency-Key header (up to 80 characters): sending the same key again returns the same job, and reusing it with a different body answers 409. GET https://api.impossi.build/v1/videos lists the key's jobs as {"items":[...],"next_cursor":...}; limit defaults to 50 (at most 100), and next_cursor goes back as cursor for the next page.

Download a finished video

result_url is the relative path /v1/videos/{id}/content by default. When the operator has configured a public API origin, it is an absolute URL on that origin instead, such as https://api.impossi.build/v1/videos/{id}/content. Resolve it against the API origin, https://api.impossi.build, and both forms give the right address:

javascript
const contentUrl = new URL(job.result_url, "https://api.impossi.build");
const video = await fetch(contentUrl, {
  headers: { Authorization: `Bearer ${process.env.SINGULAR_API_KEY}` },
});
python
from urllib.parse import urljoin

content_url = urljoin("https://api.impossi.build", job["result_url"])

result_url is not a public or signed link: send the same Authorization header that created the job. GET /v1/videos/{id}/content answers:

HTTP statusCodeMeaning
200NoneThe video bytes, with the model's Content-Type (for example video/mp4) and Cache-Control: private, no-store.
404not_foundNo job with this id for this API key.
409conflictThe job is not completed. Poll it first; a failed job has no video.
413payload_too_largeThe video is larger than 100 MB. When the size is not known in advance, the transfer is cut off at 100 MB instead.
502video_result_unavailableThe finished video could not be fetched just now. Retry later.

These errors use the {"status":"failure","code":"...","message":"..."} envelope.

Video job errors

When a job fails, its error is exactly one of these codes:

errorMeaningWhat to do
content_policy_violationThe model refused the prompt or the start frame on content grounds.Reword the prompt, or use a different start image.
timeoutNo result 24 hours after the job was created, or the model reported that it ran out of time.Create a new job.
upstream_busyThe model was rate limited or out of capacity.Wait a moment, then create a new job.
upstream_rejected_<status>The model refused the job when it was submitted, with this 3-digit HTTP status (for example upstream_rejected_400).A 4xx status usually means the prompt or settings: change the request. Otherwise create a new job later.
upstream_status_rejected_<status>The model refused a status check for the run, with this 3-digit HTTP status.Create a new job. With a 4xx status, change the prompt or settings if the new job fails the same way.
upstream_completed_without_resultThe run finished without a usable video.Create a new job, or try a different model.
upstream_run_conflictThe submitted run could not be matched to this job.Create a new job.
upstream_failedAny other failure.Create a new job, or try a different model.

A failed job is never charged, whatever its code. Treat a code you do not recognize as upstream_failed.

OpenAI SDK compatibility

Point the OpenAI JavaScript or Python client at https://api.impossi.build/v1 and use chat.completions.create. This is the primary supported integration.

Singular does not claim full OpenAI platform parity. In particular, Chat Completions support does not imply Responses, Assistants, Files, Batch, Realtime, fine-tuning, or every modern Chat field.

Anthropic Messages compatibility

Anthropic's native Messages protocol differs from OpenAI Chat in authentication, request shape, response content blocks, streaming event names, and error envelopes. Singular has a /v1/messages product handler, but it can only work when routing selects a provider target with an actual Anthropic Messages wire adapter.

Targets in the current upstream provider pool use an OpenAI-compatible wire. For those targets:

  • Call Claude-family models through /v1/chat/completions.
  • Use the OpenAI SDK configuration from the quickstart.
  • Do not advertise the Anthropic SDK as a drop-in client for the complete model pool.
  • Do not assume native Anthropic named SSE events or Anthropic error envelopes.

OpenAI Responses compatibility

OpenAI Responses uses input, heterogeneous output[], typed streaming events, and resource lifecycle endpoints. Singular's current public runtime does not implement that contract end to end. Use Chat Completions and read choices[0].message.content.

Compatibility release gate

A surface moves to Stable only after tests cover its exact path, auth header, required and ignored fields, non-stream response envelope, streaming event protocol, tool-call deltas, usage, errors, rate limits, and current official JavaScript/Python SDK behavior.

Updated 2026-10-17. Live model availability, rates, account state, and payment rails remain request-time data.
Compatibility, surface by surface · Singular Docs · Singular