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: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.
Upload with PUT when the size is known
Upload with PUT when the size is known
Use the returned URL and every returned header. Send the file’s raw bytes as the request body. The actual byte count must match This example applies to a response with those headers. Preserve any additional signed headers your response contains.
size_bytes.Upload with POST when the size is unknown
Upload with POST when the size is unknown
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 itsupload_ref as an input’s ref. Put endpoint parameters in params. For vehicle.segment:
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. UseGET /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.
Delete inputs and abandoned upload links
Delete inputs and abandoned upload links
Use
POST /v1/uploads/deletions to preview or request deletion. Unused links still occupy reserved space after expiry. A deletion may remain pending until a valid link expires and CarHub removes any uploaded file.Quota becomes available after deletion completes. Input retention and input deletion never remove permanent assets. asset_bytes and asset_reserved_bytes identify the asset portion of storage totals.