Uploading files
Base URL https://arteza.ai/api/v1
OpenAPI 3.1 specification, for SDK generators and agents: /api/v1/openapi.json
Official SDKs for TypeScript and Python, a command line and agent skills: SDKs and CLI
To use a local file as an input, ask for an upload URL with its content type and size in bytes, PUT the file to it within ten minutes, then pass the returned url in your input. Images, video and audio are accepted.
Send photos as JPEG, PNG, WebP or GIF. iPhone photos are HEIC by default: convert them on the device before uploading (on iOS, UIImage jpegData), which is also smaller to send.
curl https://arteza.ai/api/v1/uploads \
-H "Authorization: Bearer $ARTEZA_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "content_type": "image/png", "size": 482113 }'
# then PUT the file to upload_url with the returned headers,
# and pass "url" as image_url in a generation's input.