Skip to main content
Use multipart for direct image or audio input. Upload first when you need video or want to reuse a file. File sizes, counts, and content types depend on the endpoint. Check its API reference. Your key needs upload permission and permission for the destination inference endpoint.

Create an upload

Send the target endpoint and the file’s exact size when known:
The response contains method, url, upload_ref, and signed headers or form fields. Follow that response exactly. Do not send your CarHub API key to the upload URL.
Use the returned URL and every returned header. Send the file’s raw bytes as the request body. The actual byte count must match size_bytes.
This example applies to a response with those headers. Preserve any additional signed headers your response contains.
Omit size_bytes when creating the upload. The response contains method: "POST" and fields. Add every returned field to a multipart form, then append the file as the file field.The file must contain at least one byte and stay within the destination endpoint’s size limit. The maximum size counts against your quota while the upload link remains valid.

Submit the reference

After the upload succeeds, send its upload_ref as an input’s ref. Put endpoint parameters in params. For vehicle.segment:
CarHub verifies the uploaded file when you use the reference. There is no completion request. References belong to your organization and remain reusable until deletion or input retention removes them. For direct files, map each manifest entry to one file part:
Use exactly one source per input. Preserve array order and add role when the endpoint requires named views or document sides. Optional client_id values must be unique within the request. For render.enhance and render.plate, send 1 to 30 ordered inputs. Even a single input returns result.items[]. Each successful item contains its image in result.image; failed items contain error.

Manage storage

Inputs, permanent assets, and public output files share an organization quota across test, staging, and production. Use GET /v1/uploads/usage for usage, GET /v1/uploads for input inventory, and GET /v1/outputs for available generated files. public_output_bytes identifies the public output portion of stored_bytes. A public job accepted before the quota fills can complete above quota. Further public media jobs and uploads are rejected until space is available. Private output files follow organization retention from job completion. JSON-only jobs consume zero public file storage. If your organization uses App Builder, app_allocated_bytes shows application environment allocations included in reserved_bytes. Archived previews and unpublished applications retain their allocations until their environments are permanently deleted. Grant uploads:create for input uploads alone, storage:read for inventory, or storage:write for upload and deletion access. Asset permissions are separate.