Parallel · Schema
ChatCompletionResponseChunk
Chat completion response chunk.
CompanyArtificial IntelligenceWeb SearchAgentsDeep ResearchWeb ExtractionData EnrichmentWeb MonitoringLLM ToolsA2AAI AgentsMCPAgent SkillsContent ExtractionEntity Resolution
Properties
| Name | Type | Description |
|---|---|---|
| id | string | The id of the chat completion response chunk. |
| choices | array | |
| created | integer | |
| model | string | |
| object | string | |
| moderation | object | |
| service_tier | object | |
| system_fingerprint | object | |
| usage | object | |
| type | string | The type of the chat completion chunk. Always `chat.completion.chunk`. |
| basis | array | Basis for the chat completion chunk, including citations and reasoning supporting the output. |
| interaction_id | object | Identifier for this interaction. Pass as previous_interaction_id for follow-ups. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/parallel-ai/json-schema/parallel-ai-chat-completion-response-chunk-schema.json",
"title": "ChatCompletionResponseChunk",
"description": "Chat completion response chunk.",
"x-generated": "2026-11-17",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/parallel-ai-chat-api-beta-api-openapi.yml#/components/schemas/ChatCompletionResponseChunk",
"additionalProperties": true,
"properties": {
"id": {
"description": "The id of the chat completion response chunk.",
"title": "Id",
"type": "string"
},
"choices": {
"items": {
"$ref": "#/$defs/Choice"
},
"title": "Choices",
"type": "array"
},
"created": {
"title": "Created",
"type": "integer"
},
"model": {
"title": "Model",
"type": "string"
},
"object": {
"const": "chat.completion.chunk",
"title": "Object",
"type": "string"
},
"moderation": {
"anyOf": [
{
"$ref": "#/$defs/Moderation"
},
{
"type": "null"
}
],
"default": null
},
"service_tier": {
"anyOf": [
{
"enum": [
"auto",
"default",
"flex",
"scale",
"priority"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Service Tier"
},
"system_fingerprint": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "System Fingerprint"
},
"usage": {
"anyOf": [
{
"$ref": "#/$defs/CompletionUsage"
},
{
"type": "null"
}
],
"default": null
},
"type": {
"const": "chat.completion.chunk",
"description": "The type of the chat completion chunk. Always `chat.completion.chunk`.",
"title": "Type",
"type": "string"
},
"basis": {
"default": [],
"description": "Basis for the chat completion chunk, including citations and reasoning supporting the output.",
"items": {
"$ref": "#/$defs/FieldBasis"
},
"title": "Basis",
"type": "array"
},
"interaction_id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Identifier for this interaction. Pass as previous_interaction_id for follow-ups.",
"title": "Interaction Id"
}
},
"required": [
"id",
"choices",
"created",
"model",
"object",
"type"
],
"type": "object",
"$defs": {
"ChatCompletionTokenLogprob": {
"additionalProperties": true,
"properties": {
"token": {
"title": "Token",
"type": "string"
},
"bytes": {
"anyOf": [
{
"items": {
"type": "integer"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Bytes"
},
"logprob": {
"title": "Logprob",
"type": "number"
},
"top_logprobs": {
"items": {
"$ref": "#/$defs/TopLogprob"
},
"title": "Top Logprobs",
"type": "array"
}
},
"required": [
"token",
"logprob",
"top_logprobs"
],
"title": "ChatCompletionTokenLogprob",
"type": "object"
},
"Choice": {
"additionalProperties": true,
"properties": {
"delta": {
"$ref": "#/$defs/ChoiceDelta"
},
"finish_reason": {
"anyOf": [
{
"enum": [
"stop",
"length",
"tool_calls",
"content_filter",
"function_call"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Finish Reason"
},
"index": {
"title": "Index",
"type": "integer"
},
"logprobs": {
"anyOf": [
{
"$ref": "#/$defs/ChoiceLogprobs"
},
{
"type": "null"
}
],
"default": null
}
},
"required": [
"delta",
"index"
],
"title": "Choice",
"type": "object"
},
"ChoiceDelta": {
"additionalProperties": true,
"description": "A chat completion delta generated by streamed model responses.",
"properties": {
"content": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Content"
},
"function_call": {
"anyOf": [
{
"$ref": "#/$defs/ChoiceDeltaFunctionCall"
},
{
"type": "null"
}
],
"default": null
},
"refusal": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Refusal"
},
"role": {
"anyOf": [
{
"enum": [
"developer",
"system",
"user",
"assistant",
"tool"
],
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Role"
},
"tool_calls": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/ChoiceDeltaToolCall"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Tool Calls"
}
},
"title": "ChoiceDelta",
"type": "object"
},
"ChoiceDeltaFunctionCall": {
"additionalProperties": true,
"description": "Deprecated and replaced by `tool_calls`.\n\nThe name and arguments of a function that should be called, as generated by the model.",
"properties": {
"arguments": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Arguments"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
}
},
"title": "ChoiceDeltaFunctionCall",
"type": "object"
},
"ChoiceDeltaToolCall": {
"additionalProperties": true,
"properties": {
"index": {
"title": "Index",
"type": "integer"
},
"id": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Id"
},
"function": {
"anyOf": [
{
"$ref": "#/$defs/ChoiceDeltaToolCallFunction"
},
{
"type": "null"
}
],
"default": null
},
"type": {
"anyOf": [
{
"const": "function",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Type"
}
},
"required": [
"index"
],
"title": "ChoiceDeltaToolCall",
"type": "object"
},
"ChoiceDeltaToolCallFunction": {
"additionalProperties": true,
"properties": {
"arguments": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Arguments"
},
"name": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Name"
}
},
"title": "ChoiceDeltaToolCallFunction",
"type": "object"
},
"ChoiceLogprobs": {
"additionalProperties": true,
"description": "Log probability information for the choice.",
"properties": {
"content": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/ChatCompletionTokenLogprob"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Content"
},
"refusal": {
"anyOf": [
{
"items": {
"$ref": "#/$defs/ChatCompletionTokenLogprob"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Refusal"
}
},
"title": "ChoiceLogprobs",
"type": "object"
},
"Citation": {
"description": "A citation for a task output.",
"properties": {
"title": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Title of the citation.",
"title": "Title"
},
"url": {
"description": "URL of the citation.",
"title": "Url",
"type": "string"
},
"excerpts": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"description": "Excerpts from the citation supporting the output. Only certain processors provide excerpts.",
"title": "Excerpts"
}
},
"required": [
"url"
],
"title": "Citation",
"type": "object"
},
"CompletionTokensDetails": {
"additionalProperties": true,
"description": "Breakdown of tokens used in a completion.",
"properties": {
"accepted_prediction_tokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Accepted Prediction Tokens"
},
"audio_tokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Audio Tokens"
},
"reasoning_tokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Reasoning Tokens"
},
"rejected_prediction_tokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Rejected Prediction Tokens"
}
},
"title": "CompletionTokensDetails",
"type": "object"
},
"CompletionUsage": {
"additionalProperties": true,
"description": "Usage statistics for the completion request.",
"properties": {
"completion_tokens": {
"title": "Completion Tokens",
"type": "integer"
},
"prompt_tokens": {
"title": "Prompt Tokens",
"type": "integer"
},
"total_tokens": {
"title": "Total Tokens",
"type": "integer"
},
"completion_tokens_details": {
"anyOf": [
{
"$ref": "#/$defs/CompletionTokensDetails"
},
{
"type": "null"
}
],
"default": null
},
"prompt_tokens_details": {
"anyOf": [
{
"$ref": "#/$defs/PromptTokensDetails"
},
{
"type": "null"
}
],
"default": null
}
},
"required": [
"completion_tokens",
"prompt_tokens",
"total_tokens"
],
"title": "CompletionUsage",
"type": "object"
},
"FieldBasis": {
"description": "Citations and reasoning supporting one field of a task output.",
"properties": {
"field": {
"description": "Name of the output field.",
"title": "Field",
"type": "string"
},
"citations": {
"default": [],
"description": "List of citations supporting the output field.",
"items": {
"$ref": "#/$defs/Citation"
},
"title": "Citations",
"type": "array"
},
"reasoning": {
"description": "Reasoning for the output field.",
"title": "Reasoning",
"type": "string"
},
"confidence": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Confidence level for the output field. Only certain processors provide confidence levels.",
"title": "Confidence"
}
},
"required": [
"field",
"reasoning"
],
"title": "FieldBasis",
"type": "object"
},
"Moderation": {
"additionalProperties": true,
"description": "Moderation results for the response input and output, if moderated completions were requested.",
"properties": {
"input": {
"anyOf": [
{
"$ref": "#/$defs/ModerationInputModerationResult"
},
{
"$ref": "#/$defs/ModerationInputError"
}
],
"title": "Input"
},
"output": {
"anyOf": [
{
"$ref": "#/$defs/ModerationOutputModerationResult"
},
{
"$ref": "#/$defs/ModerationOutputError"
}
],
"title": "Output"
}
},
"required": [
"input",
"output"
],
"title": "Moderation",
"type": "object"
},
"ModerationInputError": {
"additionalProperties": true,
"description": "An error produced while attempting moderation for the response input or output.",
"properties": {
"code": {
"title": "Code",
"type": "string"
},
"message": {
"title": "Message",
"type": "string"
},
"type": {
"const": "error",
"title": "Type",
"type": "string"
}
},
"required": [
"code",
"message",
"type"
],
"title": "ModerationInputError",
"type": "object"
},
"ModerationInputModerationResult": {
"additionalProperties": true,
"description": "A moderation result produced for the response input or output.",
"properties": {
"categories": {
"additionalProperties": {
"type": "boolean"
},
"title": "Categories",
"type": "object"
},
"category_applied_input_types": {
"additionalProperties": {
"items": {
"enum": [
"text",
"image"
],
"type": "string"
},
"type": "array"
},
"title": "Category Applied Input Types",
"type": "object"
},
"category_scores": {
"additionalProperties": {
"type": "number"
},
"title": "Category Scores",
"type": "object"
},
"flagged": {
"title": "Flagged",
"type": "boolean"
},
"model": {
"title": "Model",
"type": "string"
},
"type": {
"const": "moderation_result",
"title": "Type",
"type": "string"
}
},
"required": [
"categories",
"category_applied_input_types",
"category_scores",
"flagged",
"model",
"type"
],
"title": "ModerationInputModerationResult",
"type": "object"
},
"ModerationOutputError": {
"additionalProperties": true,
"description": "An error produced while attempting moderation for the response input or output.",
"properties": {
"code": {
"title": "Code",
"type": "string"
},
"message": {
"title": "Message",
"type": "string"
},
"type": {
"const": "error",
"title": "Type",
"type": "string"
}
},
"required": [
"code",
"message",
"type"
],
"title": "ModerationOutputError",
"type": "object"
},
"ModerationOutputModerationResult": {
"additionalProperties": true,
"description": "A moderation result produced for the response input or output.",
"properties": {
"categories": {
"additionalProperties": {
"type": "boolean"
},
"title": "Categories",
"type": "object"
},
"category_applied_input_types": {
"additionalProperties": {
"items": {
"enum": [
"text",
"image"
],
"type": "string"
},
"type": "array"
},
"title": "Category Applied Input Types",
"type": "object"
},
"category_scores": {
"additionalProperties": {
"type": "number"
},
"title": "Category Scores",
"type": "object"
},
"flagged": {
"title": "Flagged",
"type": "boolean"
},
"model": {
"title": "Model",
"type": "string"
},
"type": {
"const": "moderation_result",
"title": "Type",
"type": "string"
}
},
"required": [
"categories",
"category_applied_input_types",
"category_scores",
"flagged",
"model",
"type"
],
"title": "ModerationOutputModerationResult",
"type": "object"
},
"PromptTokensDetails": {
"additionalProperties": true,
"description": "Breakdown of tokens used in the prompt.",
"properties": {
"audio_tokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Audio Tokens"
},
"cached_tokens": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Cached Tokens"
}
},
"title": "PromptTokensDetails",
"type": "object"
},
"TopLogprob": {
"additionalProperties": true,
"properties": {
"token": {
"title": "Token",
"type": "string"
},
"bytes": {
"anyOf": [
{
"items": {
"type": "integer"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Bytes"
},
"logprob": {
"title": "Logprob",
"type": "number"
}
},
"required": [
"token",
"logprob"
],
"title": "TopLogprob",
"type": "object"
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/parallel-ai-chat-completion-response-chunk"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.