Text2Text

Text2Text Completions

The Text2Text Completion service helps generate a text based on the text introduced as input by the user. It also takes the pain out of writing to give your social, marketing, and advertising copy a premium edge.

post/text2text/chat/completions

Request

  • Base URL
    https://genai-api.picsart.io/v1
  • URL
    https://genai-api.picsart.io/v1/text2text/chat/completions
  • Auth
    API key in header X-Picsart-API-Key

Request body

max_completion_tokensinteger

An upper bound for the number of tokens that can be generated for a completion.

temperaturenumber
model'urn:air:openai:model:openai:gpt-6-astra@1' | 'urn:air:openai:model:openai:gpt-6-sol@1' | 'urn:air:openai:model:openai:gpt-6-luna@1' | 'urn:air:openai:model:openai:gpt-5@1' | 'urn:air:openai:model:openai:gpt-5.1@1' | 'urn:air:openai:model:openai:gpt-5.2@1' | 'urn:air:openai:model:openai:gpt-5.4@1' | 'urn:air:openai:model:openai:gpt-5.4-mini@1' | 'urn:air:openai:model:openai:gpt-5.4-nano@1' | 'urn:air:openai:model:openai:gpt-5.5@1' | 'urn:air:openai:model:openai:gpt-5.6-luna@1' | 'urn:air:openai:model:openai:gpt-5.6-sol@1' | 'urn:air:openai:model:openai:gpt-5.6-terra@1' | 'urn:air:openai:model:openai:gpt-5-mini@1' | 'urn:air:openai:model:openai:gpt-4o@1' | 'urn:air:openai:model:openai:gpt-4o-mini@1' | 'urn:air:openai:model:openai:gpt-4.1-mini@1' | 'urn:air:openai:model:openai:gpt-4.1-nano@1' | 'urn:air:anthropic:model:anthropic:claude-haiku-4-5@1' | 'urn:air:anthropic:model:anthropic:claude-haiku-5-5@1' | 'urn:air:anthropic:model:anthropic:claude-sonnet-4-6@1' | 'urn:air:anthropic:model:anthropic:claude-opus-4-8@1' | 'urn:air:anthropic:model:anthropic:claude-sonnet-5@1' | 'urn:air:anthropic:model:anthropic:claude-sonnet-5-5@1' | 'urn:air:anthropic:model:anthropic:claude-fable-5@1' | 'urn:air:anthropic:model:anthropic:claude-fable-5-1@1' | 'urn:air:anthropic:model:anthropic:claude-opus-5@1' | 'urn:air:anthropic:model:anthropic:claude-opus-5-5@1' | 'urn:air:google:model:google:gemini-2.5-flash@1' | 'urn:air:google:model:google:gemini-3.5-flash@1' | 'urn:air:google:model:google:gemini-3.5-flash-lite@1' | 'urn:air:google:model:google:gemini-3.8-flash@1' | 'urn:air:google:model:google:gemini-3.7-flash@1' | 'urn:air:google:model:google:gemini-3.6-flash@1' | 'urn:air:google:model:google:gemini-3.1-flash-lite@1' | 'urn:air:google:model:google:gemini-3.1-pro-preview@1' | 'urn:air:google:model:google:gemini-4-argon@1' | 'urn:air:xai:model:xai:grok-4.7@1' | 'urn:air:kimi:model:kimi:kimi-k3@1' nullable

Optionally choose a specific AI model to use for this request. If not specified, a default model will be applied. Please note that the default model may change over time as Picsart continues to improve performance and accuracy. Any change to the default will be made only after thorough testing and validation to ensure it delivers better results. If you require consistent behavior or wish to evaluate different models on your own, we recommend explicitly setting this parameter.

Response

Success.

statusstring
datastring

The response to the provided messages/instructions.

Changes

No recorded changes to this operation across all 1 revision of this API.