Skip to content
TutujinAPI

API reference

API reference

All 12 endpoint families of Tutujin API — Chat Completions, Responses, Claude Messages, Gemini generateContent, image generation and editing, Embeddings, Rerank, text to speech, speech to text, and Midjourney and Suno tasks — with paths, authentication and verification status.

Every endpoint shares one domain, https://www.tutujin.com, and the same key. OpenAI-format endpoints live under https://www.tutujin.com/v1, and request and response bodies match the official APIs, so the official SDKs work once you change the base URL.

Endpoints at a glance

EndpointMethod and pathStatusModels
Chat CompletionsPOST/v1/chat/completionsVerified681
ResponsesPOST/v1/responsesRelayed as-is5
Claude MessagesPOST/v1/messagesVerified49
Gemini generateContentPOST/v1beta/models/{model}:generateContentVerified63
Image generationPOST/v1/images/generationsRelayed as-is54
Image editingPOST/v1/images/editsRelayed as-is31
EmbeddingsPOST/v1/embeddingsVerified18
RerankPOST/v1/rerankRelayed as-is6
Text to speechPOST/v1/audio/speechRelayed as-is8
Speech to textPOST/v1/audio/transcriptionsRelayed as-is1
MidjourneyPOST/mj/submit/imagineRelayed as-is13
Suno musicPOST/suno/submit/musicRelayed as-is2

"Verified" means we have made real calls and checked billing on this site. "Relayed as-is" means requests are forwarded in their original format; parameters follow the model's official documentation. Model counts are the models in the current catalog that support the endpoint.

"Verified" endpoints are the ones we have called for real on this site and checked billing for. Endpoints marked "relayed as-is" can be called too: requests are passed to the model service in their original format, and whether a parameter takes effect follows that model's official documentation.

Conventions

TopicConvention
AuthenticationAuthorization: Bearer sk-...; Claude Messages also accepts x-api-key and Gemini also accepts x-goog-api-key — see Authentication and base URL
Request formatJSON (Content-Type: application/json); image editing and speech to text use multipart/form-data for file uploads
Model nameThe name shown in the model hub, e.g. gpt-5.4-mini
GroupSet on the key, not in the request; the same model costs different amounts in different groups — see Choosing a group
BillingEach request is charged at the key's group price and recorded under Usage in the console — see Billing and usage
ErrorsAn HTTP error status plus an error object — see Errors and retries

Which format should you use?

Your situationUse
New project, or you want to switch between vendorsChat Completions: one code path for GPT, Claude, Gemini, DeepSeek and every other model the catalog lists for this endpoint
You already have code on the Anthropic SDKClaude Messages: change the base URL and keep native parameters
You already have code on the Google Gen AI SDKGemini generateContent
You need a model that only supports the Responses formatResponses
Knowledge-base retrievalEmbeddings for vectors, Rerank to reorder search results
Creating or editing imagesImage generation, Image editing
Read-aloud or transcriptionText to speech, Speech to text
Midjourney images or AI musicMidjourney, Suno music: asynchronous tasks — submit, then poll for the result

To see which endpoints a model supports, open its page in the model hub. To list the models your key can use, call the models endpoint.

Still stuck? Add our WeChat support JsnonoChat and send the request id from the error message, and we will look into it.