Create inference results batch
Create multiple inference results from conversation turns. Identify the session with exactly one of sessionId or sessionCustomId (same find-existing semantics as POST /inferenceResults). See Inference Results.
Authorizations
API key authorization. Pass your API key in the Authorization header as a Bearer token. Both new (gsk_*) and legacy (gsk-) API keys are accepted, e.g. Authorization: Bearer gsk_... or Authorization: Bearer gsk-....
Body
ID of the session. Provide this or sessionCustomId.
"session_123"
Your own conversation id. An existing session with this custom id is found and appended to; if none matches the call returns a 400, so create the session first through the sessions API. Requires versionId or productId. Provide this or sessionId.
"my-conversation-42"
Version anchor for the sessionCustomId lookup. Provide this or productId; if both are given, versionId wins.
"ver_123"
Product anchor for the sessionCustomId lookup when no versionId is given: the existing session with that custom id is found across the product's versions.
"prod_123"
Response
Inference results created successfully
"ir_123"
"session_123"
"user_123"
Order index within the session
0
PENDING, GENERATED, FAILED, SKIPPED "PENDING"
Error message explaining why this inference result failed or was skipped
null
Structured input data. For plain text input, format is { user_message: "..." }
The agent turn output. Plain text by default (the scored scalar). For voice turns, an envelope { assistant_message, content: [{ type, uri, transcript }] } carrying audio parts — the scored scalar stays the canonical transcript.
"Model response"
150
100
50
20
Total tokens
150
0.00001
0.00003
0.000005
0.001
1
"1.0.0"
W3C trace ID for the root span created during direct inference. The same trace ID is propagated to the user endpoint via the traceparent header.
"a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4"