Key points for AI agents
- Base URL:
https://1788.love. Header:Authorization: Bearer YOUR_1788_API_KEY. - Chat:
POST /v1/chat/completions(synchronous). - Image:
POST /v1/images/generations(synchronous) orPOST /v1/images/generations/async(recommended async). - Video:
POST /v1/videosreturns taskid-> pollGET /v1/videos/{id}-> download viaGET /v1/videos/{id}/content. - Match models to endpoints: video models (
seedance,grok,MiniMax-H3,muse-video,wan,kling, etc.) only work on/v1/videos, never/v1/chat/completions; chat models never work on/v1/videos.
Step 1: Create an API key
Sign in to the 1788 Console and create an API key on the Tokens page. Keep your key on your server or in environment variables only.Step 2: Pick a starter model
See the Price List for all available models and live rates.
Step 3: Send a request
Step 4: Retrieve the result
- Chat: Read the response directly from
choices[0].message.content. - Image: Download the image URL from
data[0].urlpromptly. - Video: The response returns a task
id. PollGET /v1/videos/{id}every 5 seconds untilstatusiscompleted, then download:
A successful response from
POST /v1/videos only means the task was queued, not finished. Failed, canceled, or timed-out tasks are refunded automatically.