API Reference - API Documentation

API Reference

Base URL

Each customer has a dedicated API URL. This information will be provided to you by our sales team when your contract is activated.

Version

v1-sandboxed

Authentication

Authentication is token-based, using the Authorization HTTP header, and is required for all API endpoints.

Authorization: <token>

Content Type

All POST requests must use the application/json content type. Requests with a different content type will be rejected.

All API responses are now returned in application/json format. In case of an error, the response usually includes a message field that describes the error.

HTTP Status Codes

The Chat3D API uses standard HTTP status codes to indicate whether a request was successful or if an error occurred. The table below summarizes the most common codes returned by the API.

CODEDESCRIPTION
200OK. The request succeeded and the response contains the expected data.
202Accepted. The request is valid and a generation task has started. A task_token is provided to track its progress.
400Bad request. One or more request parameters are malformed, missing, or incompatible.
401Unauthorized. The Authorization header is missing.
403Forbidden. The token is valid but does not grant permission to access the resource or credits are insufficient.
404Not found. The endpoint doesn't exist.
405Method not allowed. The HTTP method is not supported for this endpoint.
406Not acceptable. The requested format is not supported by the server.
415Unsupported media type. The request payload format is not supported by the server. content-type must be application/json.
429Too many requests. This can occur when the client exceeds the rate limit, or when the server enforces global limits due to high concurrent usage.
500Internal server error. An unexpected condition was encountered on the server.