GET
/v1/modelsList enabled models
Returns the OpenAI-compatible model list available to your API key.
bash
1curl "$UNI_API_BASE_URL/models" \2 -H "Authorization: Bearer $UNI_API_KEY"All public cURL request examples for the OpenAI-compatible API surface.
The examples below assume the Base URL includes /v1. Create an API key in the Console, then export it before running the requests.
1export UNI_API_BASE_URL="https://api.0-0.pro/v1"2export UNI_API_KEY="<YOUR_API_KEY>"/v1/modelsReturns the OpenAI-compatible model list available to your API key.
1curl "$UNI_API_BASE_URL/models" \2 -H "Authorization: Bearer $UNI_API_KEY"/v1/models/{model}Checks whether a single model is available for the current workspace and group.
1curl "$UNI_API_BASE_URL/models/gpt-5.5" \2 -H "Authorization: Bearer $UNI_API_KEY"/v1/chat/completionsOpenAI-compatible chat generation with normal and streaming responses.
1curl "$UNI_API_BASE_URL/chat/completions" \2 -H "Authorization: Bearer $UNI_API_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "model": "gpt-5.5",6 "messages": [{"role":"user","content":"Hello"}]7 }'/v1/responsesPasses a Responses API request upstream while Uni API records usage and latency.
1curl "$UNI_API_BASE_URL/responses" \2 -H "Authorization: Bearer $UNI_API_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "model": "gpt-5.5",6 "input": "Summarize request observability in one sentence."7 }'/v1/responses/compactPass-through endpoint for upstream context compaction flows.
1curl "$UNI_API_BASE_URL/responses/compact" \2 -H "Authorization: Bearer $UNI_API_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "model": "gpt-5.5",6 "input": "Compress the previous conversation into durable context."7 }'/v1/images/generationsForwards an image generation request to the selected upstream model.
1curl "$UNI_API_BASE_URL/images/generations" \2 -H "Authorization: Bearer $UNI_API_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "model": "gpt-image-2",6 "prompt": "A precise product render of a translucent API gateway cube",7 "size": "1024x1024",8 "n": 19 }'/v1/images/editsMultipart image editing request; JSON and multipart bodies are forwarded upstream.
1curl -X POST "$UNI_API_BASE_URL/images/edits" \2 -H "Authorization: Bearer $UNI_API_KEY" \3 -F model=gpt-image-2 \4 -F prompt="Make the product render brighter" \5 -F [email protected]