Integrate Vibecode Studio into your applications with our comprehensive API. Generate code, create images, and convert text to speech programmatically.
Explore our available API endpoints and their capabilities
Generate conversational AI responses with streaming support
Create stunning images from text prompts
Convert text to natural sounding speech
Our JavaScript SDK makes it easy to integrate Vibecode Studio into your web applications. With built-in support for streaming responses, image generation, and text-to-speech.
import { PollinationClient } from '@vibecode/sdk';
const client = new PollinationClient({
apiKey: 'your-api-key'
});
const response = await client.chatCompletion({
messages: [{
role: 'user',
content: 'Create a responsive navbar with Tailwind'
}],
model: 'gpt-4o'
});
console.log(response.choices[0].message.content);
See how easy it is to integrate Vibecode Studio into your applications
const response = await fetch('https://text.pollinations.ai/openai/v1/chat/completions', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
messages: [{
role: 'user',
content: 'Explain quantum computing in simple terms'
}]
})
});
Generate conversational AI responses with our chat completion endpoint.
const imageUrl = 'https://pollinations.ai/p/A beautiful sunset?model=flux&width=1024&height=1024';
const response = await fetch(imageUrl);
const imageBlob = await response.blob();
const imageUrl = URL.createObjectURL(imageBlob);
document.getElementById('image').src = imageUrl;
Create stunning images from text prompts with our image generation API.
Get your API key and start integrating powerful AI capabilities into your applications today.