# OpenAI Model Pricing Scraper

**Use case:** 

Scrape OpenRouter pricing for OpenAI text models including prompt and completion cost, context length and modality. Clean structured output.

## Input

```json
{
  "provider": "openai",
  "modality": "text->text",
  "freeOnly": false,
  "maxItems": 5,
  "sortBy": "created"
}
```

## Output

```json
{
  "id": {
    "label": "Id",
    "format": "text"
  },
  "url": {
    "label": "Url",
    "format": "link"
  },
  "canonicalSlug": {
    "label": "Canonical Slug",
    "format": "text"
  },
  "name": {
    "label": "Name",
    "format": "text"
  },
  "description": {
    "label": "Description",
    "format": "text"
  },
  "createdAt": {
    "label": "Created At",
    "format": "text"
  },
  "knowledgeCutoff": {
    "label": "Knowledge Cutoff",
    "format": "text"
  },
  "contextLength": {
    "label": "Context Length",
    "format": "number"
  },
  "maxCompletionTokens": {
    "label": "Max Completion Tokens",
    "format": "number"
  },
  "modality": {
    "label": "Modality",
    "format": "text"
  },
  "tokenizer": {
    "label": "Tokenizer",
    "format": "text"
  },
  "promptPricePerMillion": {
    "label": "Prompt Price Per Million",
    "format": "number"
  },
  "completionPricePerMillion": {
    "label": "Completion Price Per Million",
    "format": "number"
  },
  "isModerated": {
    "label": "Is Moderated",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [OpenRouter AI Model Pricing Scraper](https://apify.com/parseforge/openrouter-models-pricing-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/parseforge/openrouter-models-pricing-scraper) to learn more, explore other use cases, and run it yourself.