API Platform

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.

Page as Markdown

Base URL#

Production
https://api.picsart.com

Authentication#

Requests are authenticated with your Picsart API key as a bearer token (see Authentication).

Headers
Authorization: Bearer <PICSART_API_KEY>
Request headers
NameTypeDescription
AuthorizationrequiredBearer <key>Your Picsart API key as a bearer token.
Content-Typerequiredapplication/jsonOn every request with a body.

Execution modes#

Execution modes
NameTypeDescription
SyncPOST /workflows/{workflow}/executeReturns the result in one call. Use only when the task finishes within ~20s (fast image models); otherwise it times out.
AsyncPOST /workflows/{workflow}/submitReturns 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.

Request
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"
  }
}
Response
{
  "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.

Submit response
{ "status": "success", "response": { "id": "wf_abc123" } }
Poll result
GET /workflows/flux-v2/wf_abc123/result HTTP/1.1
Host: api.picsart.com
Authorization: Bearer <PICSART_API_KEY>

Response envelope#

Response fields
NameTypeDescription
statusstringRequest status (success).
response.statusstringTask status: ACCEPTED · IN_PROGRESS · COMPLETED · FAILED.
response.resultobjectThe workflow output (e.g. a generated asset URL). Shape is model-specific.
response.usage.creditsnumberCredits 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 submit and 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.

Next steps#