AI
Generate text using AI
Generate text using large language models. Set stream: true for a streaming data stream compatible with the useChat hook. Set search: true to enable real-time web search with any model; the pages used are returned in sources. Include image URLs in messages content for multimodal input.
post/api/ai/{project_id}/text
Request
- Base URLhttps://core.blink.new
- URLhttps://core.blink.new/api/ai/{project_id}/text
- AuthHTTP bearer
Path parameters
project_idstring required
Example:my-project-123
Unique identifier for the project
Request body
Example request
{
"messages": [
{
"content": [
{
"image": "https://example.com/image.jpg"
}
]
}
]
}Response
Text generation successful
Example response
{
"result": {
"text": "In a small workshop at the edge of a bustling city, a robot named Artie was born...",
"steps": [
{
"stepType": "initial"
}
]
},
"metadata": {
"provider": "google-gemini"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.