Interface StartChatRunParams

interface StartChatRunParams {
    appSource?: string;
    clientMessageId?: string;
    confirmCost?: boolean;
    idempotencyKey?: string;
    maxEstimatedCapacityUnits?: number;
    mediaContext?: {
        audio: string[];
        images: string[];
        uploadedAudio?: string[];
        uploadedImages?: string[];
        uploadedVideos?: string[];
        videos: string[];
    };
    mediaReferences?: unknown[];
    messages: unknown[];
    model?: string;
    sampling?: Record<string, unknown>;
    sessionId?: string;
    tokenType?: "sogni" | "spark";
    toolChoice?: unknown;
    tools?: unknown[];
}

Properties

appSource?: string

App source label for attribution.

clientMessageId?: string

Stable client message id for pairing with the assistant response.

confirmCost?: boolean

Set true to confirm higher-cost work.

idempotencyKey?: string

Idempotency key (also accepted via Idempotency-Key header).

maxEstimatedCapacityUnits?: number

Cost ceiling for this run (capacity units).

mediaContext?: {
    audio: string[];
    images: string[];
    uploadedAudio?: string[];
    uploadedImages?: string[];
    uploadedVideos?: string[];
    videos: string[];
}

Full chat media context snapshot for generated + uploaded source indexing. Durable runs require uploaded HTTP(S) URLs, not inline data URIs.

mediaReferences?: unknown[]

Inbound media references attached to the run. Durable runs require uploaded HTTP(S) URLs, not inline data URIs.

messages: unknown[]

OpenAI-style messages array. Required.

model?: string

Model id requested for the run.

sampling?: Record<string, unknown>

Sampling defaults captured with the run for reproducibility.

sessionId?: string

Stable session id for browser-side rehydration queries.

tokenType?: "sogni" | "spark"

Token type for billing.

toolChoice?: unknown

OpenAI-style tool choice (auto, none, or specific tool).

tools?: unknown[]

OpenAI-style tools array.