DocsAPI keys

API reference

Get a generation

Every call through Gateway is recorded under the id its answer carried. Read the record back to see who served it, every provider tried in order, the tokens, and what each attempt cost.

GEThttps://api.momor.ai/models/requests/{requestId}

Path

requestIdstringRequired
The id the call’s answer carried in X-Momor-Request-Id, which is also the id of a Chat Completions answer.

Headers

AuthorizationstringRequired
Bearer and an API key of the organization that made the call.

Response

A record holds metadata alone: nothing a call sent or was answered with is kept. A field with no value is left out, and the record also carries its own id, tenantId and createdBy.

requestIdstring
The call’s id.
userIdstring
The API key, or the person signed in, that made the call.
modelsobject[]
The selectors the call asked for, as it named them.
prioritizationobject
The providers it asked to be served by first, those it asked never to be, zdr, zero data retention, deprecated, whether deprecated models could serve it, and maxAge, how old a model could be.
streamingboolean
Whether it asked for a stream.
providerstring
The provider that served it. Absent when nothing did.
modelstring
The model that served it, by its id, publisher/name. Absent when nothing did.
ownKeyboolean
Whether it was served on your own provider key.
attemptsobject[]
Every offering the call was put to, in the order the router tried them.
providerstring
The provider the offering runs on.
modelstring
The model, by its id.
ownKeyboolean
Whether the attempt ran on your own key.
byoKeyIdstring
The saved key the attempt ran on, as GET /organization/byokeys lists it by id. null for a key sent with the call or Momor's key.
statusinteger
200 where it answered, the status it failed with, or 0 where the call ended before the attempt did.
operationstring
The operation the attempt ran.chatdecisiontranscribeocr
durationMsinteger
How long the attempt took.
firstOutputMsinteger
For a streamed attempt that answered, how long until its first output.
inputTokensinteger
The input tokens the attempt was charged for.
outputTokensinteger
The tokens the attempt generated.
costUsdnumber
What the attempt cost, in US dollars, at the price of the offering it ran on.
statusinteger
How the call ended: 200, the status it failed with, or 499 when the caller hung up first.
inputTokensinteger
Input tokens read in full, over every answer the call was given.
outputTokensinteger
Tokens generated, over every answer.
cacheReadTokensinteger
Input served from a provider’s cache.
cacheWriteTokensinteger
Input written into a provider’s cache.
thoughtTokensinteger
Reasoning tokens a provider counted apart from its output.
finishReasonstring
Why the last answer ended, as its provider put it.
durationMsinteger
How long the call took, from routing it to its last answer.
firstOutputMsinteger
For a streamed call, how long until the first answer began.
createdAtdate-time
When the call was made.

To list many calls, or sum them by day, see usage and costs.

Errors

StatusCodeWhat happened
401
—
The key is missing, revoked, expired or not a Momor key.
404
—
No call was made under that id by your organization.
429
—
Too many requests; wait for Retry-After.
Updated Oct 22, 2026
Esc