Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/content/docs/ai-gateway/providers/anthropic.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ pcx_content_type: get-started
https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/anthropic
```

## Prerequisites

When making requests to Anthropic, ensure you have the following:

- Your AI Gateway Account ID.
- Your AI Gateway gateway name.
- An active Anthropic API token.
- The name of the Anthropic model you want to use.

## Examples

### cURL
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/ai-gateway/providers/azureopenai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pcx_content_type: get-started
https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/azure-openai/{resource_name}/{deployment_name}
```

## What you need
## Prerequisites

When making requests to Azure OpenAI, you will need:

Expand Down
9 changes: 9 additions & 0 deletions src/content/docs/ai-gateway/providers/bedrock.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ sidebar:
https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/aws-bedrock`
```

## Prerequisites

When making requests to Amazon Bedrock, ensure you have the following:

- Your AI Gateway Account ID.
- Your AI Gateway gateway name.
- An active Amazon Bedrock API token.
- The name of the Amazon Bedrock model you want to use.

## Make a request

When making requests to Amazon Bedrock, replace `https://bedrock-runtime.us-east-1.amazonaws.com/` in the URL you’re currently using with `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/aws-bedrock/bedrock-runtime/us-east-1/`, then add the model you want to run at the end of the URL.
Expand Down
9 changes: 9 additions & 0 deletions src/content/docs/ai-gateway/providers/cohere.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/cohere

When making requests to [Cohere](https://cohere.com/), replace `https://api.cohere.ai/v1` in the URL you’re currently using with `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/cohere`.

## Prerequisites

When making requests to Cohere, ensure you have the following:

- Your AI Gateway Account ID.
- Your AI Gateway gateway name.
- An active Cohere API token.
- The name of the Cohere model you want to use.

## Examples

### cURL
Expand Down
10 changes: 5 additions & 5 deletions src/content/docs/ai-gateway/providers/deepseek.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/deepseek

## Prerequisites

When making requests to DeepSeek, you will need:
When making requests to DeepSeek, ensure you have the following:

- AI Gateway Account ID
- AI Gateway gateway name
- DeepSeek AI API token
- DeepSeek AI model name
- Your AI Gateway Account ID.
- Your AI Gateway gateway name.
- An active DeepSeek AI API token.
- The name of the DeepSeek AI model you want to use.

## URL structure

Expand Down
10 changes: 5 additions & 5 deletions src/content/docs/ai-gateway/providers/google-ai-studio.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ pcx_content_type: get-started
https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/google-ai-studio
```

## What you need
## Prerequisites

When making requests to Google AI Studio, you will need:

- AI Gateway account ID
- AI Gateway gateway name
- Google AI Studio API key
- Google AI Studio model name
- Your AI Gateway Account ID.
- Your AI Gateway gateway name.
- An active Google AI Studio API token.
- The name of the Google AI Studio model you want to use.

## URL structure

Expand Down
9 changes: 9 additions & 0 deletions src/content/docs/ai-gateway/providers/grok.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/grok

When making requests to [Grok](https://docs.x.ai/docs#getting-started), replace `https://api.x.ai/v1` in the URL you are currently using with `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/grok`.

## Prerequisites

When making requests to Grok, ensure you have the following:

- Your AI Gateway Account ID.
- Your AI Gateway gateway name.
- An active Grok API token.
- The name of the Grok model you want to use.

## Examples

### cURL
Expand Down
9 changes: 9 additions & 0 deletions src/content/docs/ai-gateway/providers/groq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/groq

When making requests to [Groq](https://groq.com/), replace `https://api.groq.com/openai/v1` in the URL you’re currently using with `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/groq`.

## Prerequisites

When making requests to Groq, ensure you have the following:

- Your AI Gateway Account ID.
- Your AI Gateway gateway name.
- An active Groq API token.
- The name of the Groq model you want to use.

## Examples

### cURL
Expand Down
9 changes: 9 additions & 0 deletions src/content/docs/ai-gateway/providers/huggingface.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/huggingface

When making requests to HuggingFace Inference API, replace `https://api-inference.huggingface.co/models/` in the URL you’re currently using with `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/huggingface`. Note that the model you’re trying to access should come right after, for example `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/huggingface/bigcode/starcoder`.

## Prerequisites

When making requests to HuggingFace, ensure you have the following:

- Your AI Gateway Account ID.
- Your AI Gateway gateway name.
- An active HuggingFace API token.
- The name of the HuggingFace model you want to use.

## Examples

### cURL
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/ai-gateway/providers/mistral.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pcx_content_type: get-started
https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/mistral
```

## What you need
## Prerequisites

When making requests to the Mistral AI, you will need:

Expand Down
9 changes: 9 additions & 0 deletions src/content/docs/ai-gateway/providers/openai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/openai

When making requests to OpenAI, replace `https://api.openai.com/v1` in the URL you’re currently using with `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/openai`.

## Prerequisites

When making requests to OpenAI, ensure you have the following:

- Your AI Gateway Account ID.
- Your AI Gateway gateway name.
- An active OpenAI API token.
- The name of the OpenAI model you want to use.

## Examples

### cURL
Expand Down
9 changes: 9 additions & 0 deletions src/content/docs/ai-gateway/providers/openrouter.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/openrouter

When making requests to [OpenRouter](https://openrouter.ai/), replace `https://openrouter.ai/api/v1/chat/completions` in the URL you are currently using with `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/openrouter`.

## Prerequisites

When making requests to OpenRouter, ensure you have the following:

- Your AI Gateway Account ID.
- Your AI Gateway gateway name.
- An active OpenRouter API token or a token from the original model provider.
- The name of the OpenRouter model you want to use.

## Examples

### cURL
Expand Down
9 changes: 9 additions & 0 deletions src/content/docs/ai-gateway/providers/perplexity.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ pcx_content_type: get-started
https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/perplexity-ai
```

## Prerequisites

When making requests to Perplexity, ensure you have the following:

- Your AI Gateway Account ID.
- Your AI Gateway gateway name.
- An active Perplexity API token.
- The name of the Perplexity model you want to use.

## Examples

### cURL
Expand Down
9 changes: 9 additions & 0 deletions src/content/docs/ai-gateway/providers/replicate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/replicate

When making requests to Replicate, replace `https://api.replicate.com/v1` in the URL you’re currently using with `https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/replicate`.

## Prerequisites

When making requests to Replicate, ensure you have the following:

- Your AI Gateway Account ID.
- Your AI Gateway gateway name.
- An active Replicate API token.
- The name of the Replicate model you want to use.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. think we need to check each provider individually bc looks like the replicate curl example does not include a model.
    --> which leads me to wonder if this page should be updated.

  2. looking at replicate docs they also have an sdk example we could add https://replicate.com/docs/topics/models/run-a-model#run-a-model-with-the-api


## Example

### cURL
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/ai-gateway/providers/vertex.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ sidebar:
https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/google-vertex-ai
```

## What you need
## Prerequisites

When making requests to Google Vertex, you will need:

Expand Down
9 changes: 9 additions & 0 deletions src/content/docs/ai-gateway/providers/workersai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ import { Render } from "~/components";

Use AI Gateway for analytics, caching, and security on requests to [Workers AI](/workers-ai/). Workers AI integrates seamlessly with AI Gateway, allowing you to execute AI inference via API requests or through an environment binding for Workers scripts. The binding simplifies the process by routing requests through your AI Gateway with minimal setup.

## Prerequisites

When making requests to Workers AI, ensure you have the following:

- Your AI Gateway Account ID.
- Your AI Gateway gateway name.
- An active Workers AI API token.
- The name of the Workers AI model you want to use.

## REST API

To interact with a REST API, update the URL used for your request:
Expand Down
Loading