v3

latestOpenAPI 3.0.0raw.githubusercontent.com2025-07-28104.7 KB

Create a chat completion

Creates a completion for the chat message

post/chat/completions

Request body

modelstring required

ID of the model to use

Example request

{
  "model": "internta-v02"
}

Response

Successful response

idstring

A unique identifier for the completion

objectstring

The object type

createdinteger

The Unix timestamp (in seconds) of when the completion was created

modelstring

The model used for the completion

system_fingerprintstring

This fingerprint represents the backend configuration that the model runs with

Example response

{
  "id": "chatcmpl-1753709210352",
  "object": "chat.completion",
  "created": 1753709210,
  "model": "internta-v02",
  "choices": [
    {
      "message": {
        "role": "assistant",
        "content": "Sure! Synthetic biology is an interdisciplinary field..."
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 100,
    "completion_tokens": 10,
    "total_tokens": 110
  },
  "system_fingerprint": "fp_2f57f81c11"
}
All 1 operations