Battle tested in production, our API offers the most cost effective and reliable solutions for your AI needs.



Our Platform's Unrivaled Features

  • CamelGPT-mini-B is our flagship model. It is capable of generating text that is indistinguishable from human written text. The instruction tuning we applied to this model allows you to control the output of the model with ease.
  • Highly Optimized Converters inference engine allows you to generate text at blazing fast speeds. Our API is capable of generating over 100,000 tokens.
  • Integration with GPT-Research Hub allows you to easily deploy your custom models to our API. This allows you to leverage the power of our blazing API with your own models.

Commercial Use Plan

$0.00000001 /1000 tokens

  • Access To All Models
  • 100% Uptime SLA
  • Email support
  • Priority Request Handling
  • No Rate Limits
  • Commercial Use Allowed
Get Started

Non Commercial Use Plan

Free /forever

  • Access To All Models
  • Soft Rate Limits
Get Started

API Documentation

Our API is designed to be simple and easy to use. We offer two endpoints for text generation. One endpoint uses query parameters, and the other uses a JSON body.

Base URL

Our API is hosted at https://api.gpt-research.org


Note: if you want to use a custom model from a hosted GPT-Research Hub, your custom API endpoint will be shown on the model's page.

POST /api/v1/inference

Endpoint to perform text generation using a prompt and model.

Example Request (cURL):


curl -X POST \
  -H "Content-Type: application/json" \
  -d '{"prompt":"Your prompt text here", "model":"ModelName"}' \
  https://api.gpt-research.org/api/v1/inference
            

Example Request (JavaScript - fetch):


fetch('https://api.gpt-research.org/api/v1/inference', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({ prompt: 'Your prompt text here', model: 'ModelName' })
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
            

Example Response:


{
  "result": "Generated text here"
}
            

GET /api/v1/inference

Endpoint to perform text generation using a prompt and model via query parameters.

Example Request (cURL):


curl -X GET \
  "https://api.gpt-research.org/api/v1/inference?prompt=Your+prompt+text+here&model=ModelName"
            

Example Request (JavaScript - fetch):


fetch('https://api.gpt-research.org/api/v1/inference?prompt=Your+prompt+text+here&model=ModelName')
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
            

Example Response:


{
  "result": "Generated text here"
}
            

Commercial Use

To use our API for commercial purposes, please contact us at team@gpt-research.org


Join The World's Leading AI Research Organization.