API Playground

Test the Begins AI API directly in your browser.

API Key
Enter your API key to access all features. Your profile will load automatically.
Request
Enter your message
Response
AI-generated response will appear here
Response will appear here

Code Example

// JavaScript Example
const response = await fetch('https://api.begins.site/v1/chat', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    message: "Your message here",
    conversation_id: "optional-conversation-id",
    include_history: true
  })
});

const data = await response.json();
console.log(data.response);