Interfaces
REST API
Every model runs as a workflow on the Picsart API gateway. Each of the 264 models maps to a workflow name (shown on its model page); you call that workflow synchronously or asynchronously. The SDK wraps all of this — use these endpoints when calling the API directly.
Base URL#
https://api.picsart.comAuthentication#
Requests are authenticated with your Picsart API key as a bearer token (see Authentication).
Authorization: Bearer <PICSART_API_KEY>| Name | Type | Description |
|---|---|---|
Authorizationrequired | Bearer <key> | Your Picsart API key as a bearer token. |
Content-Typerequired | application/json | On every request with a body. |
Execution modes#
| Name | Type | Description |
|---|---|---|
Sync | POST /workflows/{workflow}/execute | Returns the result in one call. Use only when the task finishes within ~20s (fast image models); otherwise it times out. |
Async | POST /workflows/{workflow}/submit | Returns a task id, then poll GET /workflows/{workflow}/{id}/result. Use for video and other long-running jobs. |
Sync request#
Send the model's parameters wrapped in a params object. Per-model parameters are documented on each model page.
POST /workflows/flux-v2/execute HTTP/1.1
Host: api.picsart.com
Authorization: Bearer <PICSART_API_KEY>
Content-Type: application/json
{
"params": {
"prompt": "A serene mountain lake at golden hour",
"model": "flux-2-pro"
}
}{
"status": "success",
"response": {
"id": "wf_abc123",
"status": "COMPLETED",
"result": { "url": "https://cdn.picsart.com/…/result.png" },
"usage": { "credits": 12 }
}
}Async: submit & poll#
Submit returns a task id; poll the result until response.status is COMPLETED or FAILED.
{ "status": "success", "response": { "id": "wf_abc123" } }GET /workflows/flux-v2/wf_abc123/result HTTP/1.1
Host: api.picsart.com
Authorization: Bearer <PICSART_API_KEY>Response envelope#
| Name | Type | Description |
|---|---|---|
status | string | Request status (success). |
response.status | string | Task status: ACCEPTED · IN_PROGRESS · COMPLETED · FAILED. |
response.result | object | The workflow output (e.g. a generated asset URL). Shape is model-specific. |
response.usage.credits | number | Credits charged (see a model's Overview tab). |
Troubleshoot a request#
- Check your bearer token and the workflow name on the model page.
- Use the model's REST parameter names inside
params. SDK parameter names can differ from the REST schema. - Check the input file format, size, and URL access for your selected model.
- For a long task, use
submitand poll the returned ID. Do not repeatedly submit the same task to check progress. - For a rate-limit response, reduce request frequency and concurrent work. Follow any retry instructions in the response. Legacy Creative APIs rate limits do not establish a platform-wide limit for these workflows.
For unresolved errors, visit the API Platform Help Center. Include the workflow name, task or request ID if available, time with time zone, response status, and a small reproduction example. Remove API keys, authorization headers, signed URL credentials, and private media before you share logs.