Quickly start using our API services.
Welcome to 123API. This guide helps you quickly get started with text, image, video and audio capabilities through one OpenAI-compatible endpoint.
We provide multiple AI model families to choose from.
curl -X POST https://123api.co/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [
{
"role": "user",
"content": "Hello, please introduce yourself"
}
]
}'curl -X POST https://123api.co/v1/images/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o-image",
"prompt": "A cute panda",
"size": "1:1",
"n": 1
}'curl -X POST https://123api.co/v1/videos/generations \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "veo3.1-fast",
"prompt": "Waves crashing against the shore",
"duration": 8,
"aspect_ratio": "16:9"
}'Image and video APIs typically use asynchronous processing. Query task status to obtain the final result.
curl -X GET https://123api.co/v1/tasks/YOUR_TASK_ID \
-H "Authorization: Bearer YOUR_API_KEY"Learn more about all available API endpoints.
Learn how to integrate the API into your application.