GuideChat Models
Anthropic Claude
Field reference for the Anthropic Claude chat completion response and streaming chunk objects, covering id, choices, model and usage, with full JSON examples.
Response Object
| Parameter | Type | Description |
|---|---|---|
| id | string | Unique identifier for the chat completion |
| choices | array | List of chat completion choices. There can be more than one if n is greater than 1 |
| created | integer | Unix timestamp (in seconds) of when the chat completion was created |
| model | string | The model used for the chat completion |
| system_fingerprint | string | This fingerprint represents the backend configuration the model runs with |
| object | string | The object type, always chat.completion |
| usage | object | Usage statistics for the completion request |
| completion_tokens | integer | Number of tokens in the generated completion |
| prompt_tokens | integer | Number of tokens in the prompt |
| total_tokens | integer | Total number of tokens used in the request (prompt + completion) |
{
"id": "chatcmpl-123",
"object": "chat.completion",
"created": 1677652288,
"model": "gpt-3.5-turbo-0613",
"system_fingerprint": "fp_44709d6fcb",
"choices": [{
"index": 0,
"message": {
"role": "assistant",
"content": "\n\nHello there, how may I assist you today?",
},
"finish_reason": "stop"
}],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 12,
"total_tokens": 21
}
}Response Chunk Object
| Parameter | Type | Description |
|---|---|---|
| id | string | Unique identifier for the chat completion. Each chunk has the same ID |
| choices | array | List of chat completion choices. There can be more than one if n is greater than 1 |
| created | integer | Unix timestamp (in seconds) of when the chat completion was created. Each chunk has the same timestamp |
| model | string | The model that generated the completion |
| system_fingerprint | string | This fingerprint represents the backend configuration the model runs with |
| object | string | The object type, always chat.completion.chunk |
{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null}]}
{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"Hello"},"finish_reason":null}]}
{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"!"},"finish_reason":null}]}
....
{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":" today"},"finish_reason":null}]}
{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"?"},"finish_reason":null}]}
{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{},"finish_reason":"stop"}]}How to Create an API Key in a Specific Group
Step-by-step screenshots showing how to create an API key under a specific group in the anyrouter console, so requests route to that group's models.
ChatGPT
Reference for the ChatGPT chat completion response object and streaming chunk format, covering id, choices, model and usage fields with JSON examples.