Skip to main content

Responses

DeepAILab API responses are in JSON format. Top-level response objects usually contain a data field (for lists) or represent the resource directly.

The Object

Most resources have an object field that describes the type of the object (e.g., "model", "list", "deployment").

{ "id": "model_123", "object": "model", "created": 1678892872, "owned_by": "deepailab" }

Streaming

For endpoints that support Server-Sent Events (SSE), such as model training logs or chat completions, data is streamed as a sequence of JSON objects prefixed with data:.