Build next-gen apps with OpenAI’s powerful models.

OpenAI’s API provides access to GPT-3, which performs a wide variety of natural language tasks, and Codex, which translates natural language to code.
Get started Read Documentation

Companies developing with OpenAI’s API

GPT-3 is now available to developers in supported countries with no waiting.

Sign up and start experimenting right away. Improvements to our API and safety features help developers bring their applications to production quickly and safely.
Get started Learn more

Start building with a simple API call.

Get started Read Documentation
import openai

openai.Completion.create(
  engine="davinci",
  prompt="Make a list of astronomical observatories:"
)
Create promo copy for the FamilyTime mobile application. It allows unlimited uploading, special filters and makes it easy to create albums of photos and videos. It runs on iOS and Android:
FamilyTime is the perfect app to share and create memories with your family. FamilyTime is a free, unlimited photo and video editor that allows you to create albums of your memories. It has a special filter for the perfect summer look and is so simple to use.
Summarize this email into a single sentence:

Dear Olivia,

The solar energy conference went great. New Horizon Manufacturing wants to meet with us to talk about our photovoltaic window system we’re about to launch.
I think it would be great to talk this Tuesday.

Best,
Allison
Allison is excited to meet with New Horizon Manufacturing to discuss their photovoltaic window system.
Answer the following questions about this customer email:

I’m wondering if you could provide me with information about your cloud services for companies. I’m CTO for Moon Door, a movie production company and want to know if it can help us manage our different projects that are in production.

Questions:
1. What industry is the company
2. What is the name of the company
3. What are they interested in
4. What is the customer’s position

Answers:
1. The company is in the movie production industry.
2. The company is Moon Door.
3. The customer is interested in cloud services for companies.
4. The customer is the CTO.
Choose a genre category for each book 1. The Hunger Games, 2. The Kite Runner 3. A Wrinkle in Time ("fiction", "young adult", "science fiction", "fantasy", "other") and make a list of the book and its genre:
1. The Hunger Games: young adult, fiction
2. The Kite Runner: fiction, young adult
3. A Wrinkle in Time: science fiction, fantasy, other
Translate this into French: Where can I find a bookstore?
Où puis-je trouver un magasin de livres?

Perform a wide variety of natural language tasks with GPT-3.

Translate natural language to code with Codex.

"""
Table customers, columns = [CustomerId, FirstName, LastName, Company, Address, City, State, Country, PostalCode, Phone, Fax, Email, SupportRepId, TotalSpend]

Create a MySQL query for all customers in Texas who have spent over five thousand dollars.
"""

query = "SELECT * FROM customers WHERE State = 'TX' AND TotalSpend > 5000"
"""
Python 3
Get the current value of a Bitcoin in US dollars using the bitcoincharts api
"""

import requests
import json

def get_bitcoin_price():
    url = 'http://api.bitcoincharts.com/v1/weighted_prices.json'
    response = requests.get(url)
    data = json.loads(response.text)
    return data['USD']['7d']

if __name__ == '__main__':
    print(get_bitcoin_price())
"""
Extract all the html from the string and replace the tags with ''
"""

def extract_html(text):
    return re.sub('<[^<]+?>', '', text)

lightningFast

Our advanced inference infrastructure provides extremely short response times.

expandScalable

We can handle high volume requests that scale with your needs.

forkFlexible

Easy to use and flexible enough to make machine learning teams more productive.

Like our developers, we strive to ensure machine learning models are used responsibly.

We help developers use best practices and provide tools, including:

  • Free content filtering
  • End user monitoring to prevent misuse
  • Specialized endpoints to scope API usage

Our API allows us to review applications before they go live, continually improve our safety tools, help developers scale over time, and better understand the effects of our technology.

Get started

Built with OpenAI’s API

Our API has been deployed in thousands of applications with tasks ranging from helping people learn new languages to solving complex classification problems.

GitHub Copilot Screenshot

GitHub Copilot

GitHub Copilot is an AI pair programmer that helps you write code faster with less work. Using Codex, GitHub Copilot applies the context in your editor and synthesizes whole lines and even entire functions of code.

Keeper Tax Screenshot

Keeper Tax

Keeper Tax helps freelancers automatically find tax-deductible expenses by using GPT-3 to interpret data from their bank statements into usable transaction information.

Viable Screenshot

Viable

Viable helps businesses better and more quickly understand what customers are telling them by using language models, including GPT-3, to analyze customer feedback and generate summaries and insights.

Duolingo Screenshot

Duolingo

Duolingo uses GPT-3 to provide French grammar corrections. An internal Duolingo study shows that use of this feature leads to measurably better second language writing skills!