Pular para o conteúdo principal
POST
Python (SDK)

Autorizações

Authorization
string
header
obrigatório

Send Authorization: Bearer , using an MKA1 API key for automation or an OAuth API access token for a signed-in application. Use a dynamic security callback to refresh OAuth access tokens. Browser session-only operations still require their declared cookie.

Cabeçalhos

X-On-Behalf-Of
string

Optional external end-user identifier forwarded by the API gateway.

Corpo

application/json
input_file_id
string
obrigatório
endpoint
enum<string>
obrigatório
Opções disponíveis:
/v1/chat/completions,
/v1/responses,
/v1/embeddings,
/v1/images/generations
completion_window
any
obrigatório
metadata
object | null
max_concurrency
integer

Quantas linhas podem estar em execução ao mesmo tempo, até o limite máximo do gateway (BATCH_MAX_LINE_CONCURRENCY). O padrão é a concorrência padrão de linhas do gateway (BATCH_DEFAULT_LINE_CONCURRENCY). Os limites de taxa de um modelo são respeitados antes disso: uma linha aguarda a janela do seu modelo em vez de excedê-la.

Intervalo obrigatório: 1 <= x <= 9007199254740991

Resposta

200 - application/json

OK

id
string
obrigatório
object
any
obrigatório
endpoint
string
obrigatório
input_file_id
string
obrigatório
completion_window
string
obrigatório
status
enum<string>
obrigatório
Opções disponíveis:
validating,
failed,
in_progress,
finalizing,
completed,
expired,
cancelling,
cancelled
created_at
integer
obrigatório
Intervalo obrigatório: -9007199254740991 <= x <= 9007199254740991
request_counts
object
obrigatório
max_concurrency
integer
obrigatório

Quantas linhas deste lote podem estar em andamento ao mesmo tempo. Cada linha é admitida primeiro em relação aos limites de taxa do seu modelo.

Intervalo obrigatório: -9007199254740991 <= x <= 9007199254740991
errors
object | null
output_file_id
string | null
error_file_id
string | null
in_progress_at
integer | null
Intervalo obrigatório: -9007199254740991 <= x <= 9007199254740991
expires_at
integer | null
Intervalo obrigatório: -9007199254740991 <= x <= 9007199254740991
finalizing_at
integer | null
Intervalo obrigatório: -9007199254740991 <= x <= 9007199254740991
completed_at
integer | null
Intervalo obrigatório: -9007199254740991 <= x <= 9007199254740991
failed_at
integer | null
Intervalo obrigatório: -9007199254740991 <= x <= 9007199254740991
expired_at
integer | null
Intervalo obrigatório: -9007199254740991 <= x <= 9007199254740991
cancelling_at
integer | null
Intervalo obrigatório: -9007199254740991 <= x <= 9007199254740991
cancelled_at
integer | null
Intervalo obrigatório: -9007199254740991 <= x <= 9007199254740991
metadata
object | null