files
Upload a file
Create a file for a run's input and get a one-time upload URL.
- PUT the bytes to upload_url, then pass the file's ID as the file field's value in a run's input.
- A file can be at most 25 MiB unless the deployment sets otherwise. Executables are refused, and the first bytes must match media_type.
- A file serves one run. It is erased when that run's job ends, or after an hour if unused.
- A run's file field also takes an https URL, or a data: URI of at most 512 KB.
post/v1/files
Request
- Base URL: https://api.pomerado.ai
- URL: https://api.pomerado.ai/v1/files
- Auth: HTTP bearer
Request body
Response
The new file, awaiting its upload
Example response
{
"id": "file_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190",
"job_id": "job_0f8e2d1c4b3a49e8a7f6e5d4c3b2a190"
}Changes
No recorded changes to this operation across all 1 revision of this API.