Topic Extraction

text/topic_extraction/openai by OpenAI
Topic Extraction+ more tasksProvider defaultAsyncSyncPDF inputImage inputAudio inputVideo inputText inputURL inputEU hosting
Price from
$10 / 1M tokens
Tasks
1
Topic Extraction
Regions
Global
Mode
sync
Input
Text
Output
items

About OpenAI Topic Extraction

Topic analysis is a Natural Language Processing (NLP) technique that allows us to automatically extract meaning from text by identifying recurrent themes or topics.

OpenAI Topic Extraction is OpenAI's default model for Topic Extraction available on Eden AI for Topic Extraction, from $10 / 1M tokens. Call it with the same API key as every other Eden AI model by sending its model string to the Universal AI endpoint, with processing in global regions.

Learn more about Topic Extraction APIs on Eden AI

Tasks and prices

OpenAI Topic Extraction is available on Eden AI for 1 tasks. Each task has its own model string and price: send that string to the Universal AI endpoint to use the model for that task.

Task
Price
Regions
Mode
Docs
Playground
Topic Extractiontext/topic_extraction/openai
$10 / 1M tokens
sync

Parameters

What you send and what you get back when you call OpenAI Topic Extraction through Eden AI. The same fields work with every model of the same task, so you can switch model without changing your code.

Input

  • text (required): text. Text to analyze for topics
  • language: text. ISO 639-1 language code

Response

  • items

Estimate your monthly cost

Enter your monthly volume for Topic Extraction to compare OpenAI Topic Extraction with its cheapest alternatives.

Call OpenAI Topic Extraction with Eden AI

Send the model string to the Universal AI endpoint. To use another model, copy its string from the table above.

import requests

response = requests.post(
    "https://api.edenai.run/v3/universal-ai",
    headers={"Authorization": "Bearer YOUR_EDENAI_API_KEY"},
    json={
        "model": "",
        "input": {},
    },
)
print(response.json())

Questions about OpenAI Topic Extraction

On Eden AI, OpenAI Topic Extraction costs $10 / 1M tokens for Topic Extraction. The Tasks and prices table lists the price for each task, and you only pay for what you use.

On Eden AI, OpenAI Topic Extraction is available for: Topic Extraction. Input: Text. Output: items.

Yes. OpenAI Topic Extraction is processed in Europe for at least one task: see the Regions column in the Tasks and prices table.

Asynchronous: you start a job, then get the result by polling it or through a webhook. This suits long files such as audio, video or multipage documents.

Eden AI offers Topic Extraction from 3 providers, all callable with the same API key. The cheapest models are compared just below.

More from OpenAI

Other OpenAI models on Eden AI, for every task.