Base URL
Some endpoints like
/api/models and /api/models-config/* are public and don’t require authentication.Endpoints
Generation Endpoints
Account & Usage Endpoints
Response Format
All generation endpoints return a consistent response structure:Error Responses
401 Unauthorized
403 Forbidden
404 Not Found
429 Too Many Requests
400 Bad Request
402 Payment Required
- Credit balance is too low for the requested operation
- Cost exceeds available balance