GET

/v1/schemas/fireworks/chat/v1/completions?kind=output

kind outputactivity chathash 5d9d4233…extracted Sep 12, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
04c9d2874bad4d95506ccffd28ab3bdbf9fee45bfef4e95e60c65f9656c45c20
{
  "fetchedAt": 1789189866,
  "extractorVersion": "1",
  "verifiedAt": null
}

Response body

7 properties · 5 required · 9 $defs
propertytypedescriptionconstraints
id*stringA unique identifier of the response
created*integerThe Unix time in seconds when the response was generated
model*stringThe model used for the completion
choices*Choice[]The list of generated completion choices
usage*UsageInfoUsage statistics for the completion
objectstringThe object type, which is always "text_completion"default: "text_completion"
perf_metricsobjectSee parameter [perf_metrics_in_response](#body-perf-metrics-in-response)nullable

Types

9 $defs

Choiceobject

A completion choice.

index*integerThe index of the completion choice
text*stringThe completion response
logprobsLogProbs | NewLogProbsThe log probabilities of the most likely tokensnullable · default: null
finish_reasonenumThe reason the model stopped generating tokens. This will be "stop" if the model hit a natural stop point or a provided stop sequence, or "length" if the maximum number of tokens specified in the request was reachedstop | length | error · nullable
raw_outputRawOutputExtension of OpenAI that returns low-level interaction of what the model sees, including the formatted prompt and function callsnullable
prompt_token_idsinteger[]Token IDs for the prompt (when return_token_ids=true)nullable
token_idsinteger[]Token IDs for the generated completion (when return_token_ids=true)nullable

CompletionTokensDetailsobject

reasoning_tokensintegernullable

LogProbsobject

Legacy log probabilities format

tokensstring[]
token_logprobsnumber[]
top_logprobsobject[]nullable
text_offsetinteger[]
token_idsinteger[]nullable

NewLogProbsobject

OpenAI-compatible log probabilities format

contentNewLogProbsContent[]

NewLogProbsContentobject

token*string
logprob*number
sampling_logprob*numbernullable
sampling_mask_countintegernullable
sampling_maskinteger[] | stringnullable · default: null
bytes*integer[]
top_logprobsNewLogProbsContentTopLogProbs[]
token_id*integer
text_offset*integer
last_activationstringnullable
routing_matrixstringnullable

NewLogProbsContentTopLogProbsobject

token*string
logprob*number
token_id*integer
bytesinteger[]

PromptTokensDetailsobject

cached_tokensintegernullable

RawOutputobject

Extension of OpenAI that returns low-level interaction of what the model sees, including the formatted prompt and function calls

prompt_fragments*string | integer[]Pieces of the prompt (like individual messages) before truncation and concatenation. Depending on prompt_truncate_len some of the messages might be dropped. Contains a mix of strings to be tokenized and individual tokens (if dictated by the conversation templa…
prompt_token_ids*integer[]Fully processed prompt as seen by the model
completion*stringRaw completion produced by the model before any tool calls are parsed
completion_token_idsinteger[]Token IDs for the raw completionnullable
completion_logprobsNewLogProbsOpenAI-compatible log probabilities formatnullable
imagesstring[]Images in the promptnullable
videosstring[]Videos in the promptnullable
grammarstringGrammar used for constrained decoding, can be either user provided (directly or JSON schema) or inferred by the chat templatenullable

UsageInfoobject

Usage statistics.

prompt_tokens*integerThe number of tokens in the prompt
total_tokens*integerThe total number of tokens used in the request (prompt + completion)
completion_tokensintegerThe number of tokens in the generated completionnullable
prompt_tokens_detailsPromptTokensDetailsDetails about prompt tokens, including cached tokensnullable
completion_tokens_detailsCompletionTokensDetailsDetails about completion tokens, including reasoning tokensnullable
output_tokens_detailsCompletionTokensDetailsDetails about output tokens, including reasoning tokensnullable

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"fireworks","endpointId":"v1/completions","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}