Ask AI
Rewriter
Ask AI
POST
Ask AI
Use this API to send a text rewriting or processing request to an AI model. The model provider is resolved automatically from the model name prefix.Documentation Index
Fetch the complete documentation index at: https://velt-v5-0-2-beta-28.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Customer API keys are stored encrypted in the workspace
aiModelsConfig and decrypted server-side. Configure your provider API keys in the Velt Console before using this endpoint.Endpoint
POST https://api.velt.dev/v2/rewriter/ask-ai
Headers
Your API key.
Your Auth Token.
Body
Params
OpenAI reasoning models (
o1-*, o3-*, o4-*) use a user-only message format. The prompt is prepended to the text in a single user message rather than sent as a separate system prompt.Supported models (non-exhaustive)
| Provider | Example models |
|---|---|
| OpenAI | gpt-4o, gpt-4o-mini, gpt-4.1, o3, o3-mini, o4-mini |
| Anthropic | claude-sonnet-4-0, claude-opus-4-0, claude-haiku-4-5 |
| Gemini | gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-flash-lite |

