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

Autorizações

Authorization
string
header
obrigatório

Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.

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/embeddings,
/v1/images/generations
completion_window
any
obrigatório
metadata
object | null

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
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