Generations
Keep an output as a file
Turns an image output of a succeeded generation into a file of your workspace, so you can pass its ID to the next run without downloading and uploading it. Calling it again returns the same file. Other outputs answer 400.
Needs an API key with the generations:write scope.
post/v1/generations/{id}/outputs/{index}/file
Request
- Base URL: https://api.tryleap.ai
- URL: https://api.tryleap.ai/v1/generations/{id}/outputs/{index}/file
- Auth: one of:
- API key in header x-api-key
- HTTP bearer
Path parameters
idstring required
The generation's ID, gen_....
indexinteger required
The output's position in output, from 0.
Response
The file.
Changes
No recorded changes to this operation across all 1 revision of this API.