v1

latestOpenAPI 3.0.02026-07-248574216.0 KB
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 body

max_tokensnumber
temperaturenumber
model'urn:air:openai:model:openai:gpt-5@1' | 'urn:air:openai:model:openai:gpt-5-search-api@1' | 'urn:air:openai:model:openai:gpt-5.1@1' | 'urn:air:openai:model:openai:gpt-5.1-chat@1' | 'urn:air:openai:model:openai:gpt-5.2@1' | 'urn:air:openai:model:openai:gpt-5-mini@1' | 'urn:air:openai:model:openai:gpt-5-nano@1' | 'urn:air:openai:model:openai:gpt-4o@1' | 'urn:air:openai:model:openai:gpt-4o-mini@1' | 'urn:air:openai:model:openai:gpt-4o-search-preview@1' | 'urn:air:openai:model:openai:gpt-4-turbo@1' | 'urn:air:openai:model:openai:gpt-4.1@1' | 'urn:air:openai:model:openai:gpt-4.1-mini@1' | 'urn:air:openai:model:openai:gpt-4.1-nano@1' | 'urn:air:openai:model:openai:gpt-3.5-turbo@1' | 'urn:air:anthropic:model:anthropic:claude-sonnet-4-5-latest@1' | 'urn:air:anthropic:model:anthropic:claude-sonnet-4-6@1' | 'urn:air:google:model:google:gemini-2.0-flash-001@1' | 'urn:air:google:model:google:gemini-2.0-flash-lite@1' | 'urn:air:google:model:google:gemini-2.5-pro@1' | 'urn:air:google:model:google:gemini-2.5-flash@1' | 'urn:air:google:model:google:gemini-3-pro-preview@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.