🎁 New Sign up free, 10 calls on us. Up to $1, no card needed.

API Reference

Synthorai exposes a multi-protocol REST API over HTTPS. The same base URL, key, and billing serve three request shapes — OpenAI Chat Completions, OpenAI Responses, and Anthropic Messages — plus auxiliary endpoints for embeddings, images, audio, and reranking.

Base URL:  https://synthorai.io/v1

All endpoints require:
  Content-Type:  application/json
  Authorization: Bearer <your-api-key>
  (or x-api-key: <your-api-key> for /v1/messages)

Endpoints

EndpointTypeDescription
POST /v1/chat/completions chat OpenAI Chat Completions — universal entry point, routes to any provider.
POST /v1/responses chat OpenAI Responses — tool use, reasoning, structured output.
POST /v1/messages chat Anthropic Messages — Claude / Bedrock-Anthropic native.
POST /v1/embeddings embedding Generate vector embeddings.
POST /v1/images/generations image Generate images from text prompts.
POST /v1/videos video Create and poll asynchronous video generation jobs.
POST /v1/audio/transcriptions audio Transcribe audio to text.
POST /v1/audio/speech audio Convert text to speech.
POST /v1/rerank rerank Rerank documents against a query.
GET /v1/models read List all models available to the authenticated key.

Every endpoint bills against the same per-token catalog — see the model price comparison for what each routable model costs.