멱등성
기본 URL https://arteza.ai/api/v1
OpenAPI 3.1 사양, SDK 생성기 및 에이전트용: /api/v1/openapi.json
TypeScript 및 Python용 공식 SDK, 명령줄 및 에이전트 스킬: SDK 및 CLI
생성을 만들 때 Idempotency-Key 헤더를 보내세요. 동일한 키로 요청을 반복하면 두 번째 생성을 시작하고 청구하는 대신 원본 생성을 반환합니다. 다른 본문으로 키를 재사용하면 idempotency_conflict를 반환합니다.
curl https://arteza.ai/api/v1/generations \
-H "Authorization: Bearer $ARTEZA_API_KEY" \
-H "Idempotency-Key: order-1042-render" \
-H "Content-Type: application/json" \
-d '{"model": "flux-2-max", "input": {"prompt": "a lighthouse at dusk"}}'
# The same request again, after a timeout: the first generation comes back
HTTP/1.1 200 OK
Idempotent-Replayed: true주문 ID와 같이 작업에 속하는 값을 사용하고, 타임아웃이나 연결 끊김 후 재시도할 때마다 다시 전송하세요. 재생된 응답은 Idempotent-Replayed: true 헤더를 포함합니다. 키는 계정에 속하며 24시간 동안 유지되고, 그 후 동일한 키로 새로운 생성이 시작됩니다.