Export Image as SVG
This API retrieves or generates an SVG version of the output image for a specific task ID. The response includes the SVG URL of the requested image.
API Endpoint
Headers
Name
Type
Required
Description
formacloud-api-key
string
Yes
API key for authentication.
Query Parameters
Name
Type
Required
Description
seq
integer
No
Sequence number of the output image (default is 0).
Path Parameters
Name
Type
Required
Description
task_id
string
Yes
The unique ID of the task to export the SVG for.
Example Request
Response
Returns a JSON object containing the SVG URL of the requested image.
Response Fields
Field
Type
Description
svg_url
string
URL of the exported SVG image.
Example Response
Error Responses
HTTP Code
Error
Description
404
TaskNotFoundError
The specified task ID does not exist.
400
InvalidInputError
The input is invalid (e.g., seq
out of range).
400
InvalidInputError
Task is not a valid POSTER
type.
Last updated