API docs
OpenAI-compatible gateway routes.
Use Codjz Gateway as your base URL and keep your application code close to the OpenAI SDK format.
Base URL
https://api.codjz.com/v1
List available models
curl https://api.codjz.com/v1/models \
-H "Authorization: Bearer sk_YOUR_KEY"
Use the API key created in Tokens. The live list is controlled by your key and Codjz channel configuration.
Chat completions
curl https://api.codjz.com/v1/chat/completions \
-H "Authorization: Bearer sk_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.4-mini",
"messages": [{"role": "user", "content": "Write 5 ad hooks"}]
}'
Image generation
curl https://api.codjz.com/v1/images/generations \
-H "Authorization: Bearer sk_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2",
"prompt": "A clean product photo on a white background",
"size": "1024x1024"
}'
Video generation
curl https://api.codjz.com/v1/videos/generations \
-H "Authorization: Bearer sk_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "veo_3_1-fast-portrait",
"prompt": "A product rotating on a clean studio table",
"duration": 6
}'