跳到主要内容Skip to content
Docs

API Reference

All public cURL request examples for the OpenAI-compatible API surface.

Base URL and key

The examples below assume the Base URL includes /v1. Create an API key in the Console, then export it before running the requests.

bash
1export BASE_URL="https://api.0-0.pro/v1"2export API_KEY="<YOUR_API_KEY>"

cURL requests

GET
/v1/models

List enabled models

Returns the OpenAI-compatible model list available to your API key.

bash
1curl "https://api.0-0.pro/v1/models" \2  -H "Authorization: Bearer $API_KEY"
GET
/v1/models/{model}

Retrieve a model

Checks whether a single model is available for the current workspace and group.

bash
1curl "https://api.0-0.pro/v1/models/gpt-5.5" \2  -H "Authorization: Bearer $API_KEY"
POST
/v1/chat/completions

Create a chat completion

OpenAI-compatible chat generation with normal and streaming responses.

bash
1curl "https://api.0-0.pro/v1/chat/completions" \2  -H "Authorization: Bearer $API_KEY" \3  -H "Content-Type: application/json" \4  -d '{5    "model": "gpt-5.5",6    "messages": [{"role":"user","content":"Hello"}]7  }'
POST
/v1/messages

Create a message

Passes an Anthropic Messages request upstream while 0-0 records usage and latency.

bash
1curl "https://api.0-0.pro/v1/messages?beta=true" \2  -H "x-api-key: $API_KEY" \3  -H "Content-Type: application/json" \4  -H "anthropic-version: 2023-06-01" \5  -d '{6    "model": "claude-sonnet-4-6",7    "max_tokens": 128,8    "messages": [{"role":"user","content":"Hello"}]9  }'
POST
/v1/responses

Create a response

Passes a Responses API request upstream while 0-0 records usage and latency.

bash
1curl "https://api.0-0.pro/v1/responses" \2  -H "Authorization: Bearer $API_KEY" \3  -H "Content-Type: application/json" \4  -d '{5    "model": "gpt-5.5",6    "input": "Summarize request observability in one sentence."7  }'
POST
/v1/responses/compact

Compact a response context

Pass-through endpoint for upstream context compaction flows.

bash
1curl "https://api.0-0.pro/v1/responses/compact" \2  -H "Authorization: Bearer $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  }'
POST
/v1/images/generations

Generate an image

Forwards an image generation request to the selected upstream model.

bash
1curl "https://api.0-0.pro/v1/images/generations" \2  -H "Authorization: Bearer $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  }'
POST
/v1/images/edits

Edit an image

Multipart image editing request; JSON and multipart bodies are forwarded upstream.

bash
1curl -X POST "https://api.0-0.pro/v1/images/edits" \2  -H "Authorization: Bearer $API_KEY" \3  -F model=gpt-image-2 \4  -F prompt="Make the product render brighter" \5  -F image=@input.png
POST
/v1/video/tasks

Create a video task

Starts an asynchronous upstream video generation task.

bash
1curl -X POST "https://api.0-0.pro/v1/video/tasks" \2  -H "Authorization: Bearer $API_KEY" \3  -H "Content-Type: application/json" \4  -d '{5    "model": "seedance-2-0",6    "prompt": "A ginger cat sunbathes by a window, slow dolly-in, warm natural light, cinematic detail",7    "ratio": "16:9",8    "duration": 5,9    "resolution": "720p",10    "audio": false,11    "watermark": false,12    "seed": -113  }'
GET
/v1/video/tasks/{task_id}

Retrieve a video task

Polls a task until it succeeds, fails, or remains in progress.

bash
1curl "https://api.0-0.pro/v1/video/tasks/video-task-id" \2  -H "Authorization: Bearer $API_KEY"
POST
/v1/asset-groups

Create an asset group

Creates a reusable container for material assets.

bash
1curl -X POST "https://api.0-0.pro/v1/asset-groups" \2  -H "Authorization: Bearer $API_KEY" \3  -H "Content-Type: application/json" \4  -d '{5    "platform": "JIMENG",6    "name": "Character references",7    "description": "Reusable first-frame assets",8    "project_name": "default"9  }'
GET
/v1/asset-groups/{group_id}

Retrieve an asset group

Reads one asset group; pass the provider platform as a query parameter.

bash
1curl "https://api.0-0.pro/v1/asset-groups/group-abcdef1234567890?platform=JIMENG" \2  -H "Authorization: Bearer $API_KEY"
POST
/v1/assets

Create an asset

Uploads a public asset URL into an asset group for later video tasks.

bash
1curl -X POST "https://api.0-0.pro/v1/assets" \2  -H "Authorization: Bearer $API_KEY" \3  -H "Content-Type: application/json" \4  -d '{5    "platform": "JIMENG",6    "group_id": "group-abcdef1234567890",7    "url": "https://example.com/front.png",8    "asset_type": "Image",9    "name": "Character front view"10  }'
GET
/v1/assets/{asset_id}

Retrieve an asset

Polls an asset until it becomes Active or Failed.

bash
1curl "https://api.0-0.pro/v1/assets/Asset-abcdef1234567890?platform=JIMENG" \2  -H "Authorization: Bearer $API_KEY"