diff --git a/src/content/docs/ai-gateway/providers/anthropic.mdx b/src/content/docs/ai-gateway/providers/anthropic.mdx index 0ebb5886ac0755..77908d54a450b7 100644 --- a/src/content/docs/ai-gateway/providers/anthropic.mdx +++ b/src/content/docs/ai-gateway/providers/anthropic.mdx @@ -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 diff --git a/src/content/docs/ai-gateway/providers/azureopenai.mdx b/src/content/docs/ai-gateway/providers/azureopenai.mdx index 57cbd5adf9c218..017c5358e1efd6 100644 --- a/src/content/docs/ai-gateway/providers/azureopenai.mdx +++ b/src/content/docs/ai-gateway/providers/azureopenai.mdx @@ -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: diff --git a/src/content/docs/ai-gateway/providers/bedrock.mdx b/src/content/docs/ai-gateway/providers/bedrock.mdx index 781b1a841b1bdb..0235c7f826ba3e 100644 --- a/src/content/docs/ai-gateway/providers/bedrock.mdx +++ b/src/content/docs/ai-gateway/providers/bedrock.mdx @@ -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. diff --git a/src/content/docs/ai-gateway/providers/cohere.mdx b/src/content/docs/ai-gateway/providers/cohere.mdx index 46dd59aea1d451..93fee81d23194d 100644 --- a/src/content/docs/ai-gateway/providers/cohere.mdx +++ b/src/content/docs/ai-gateway/providers/cohere.mdx @@ -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 diff --git a/src/content/docs/ai-gateway/providers/deepseek.mdx b/src/content/docs/ai-gateway/providers/deepseek.mdx index 98a612e1e3164c..58c8f4fd647377 100644 --- a/src/content/docs/ai-gateway/providers/deepseek.mdx +++ b/src/content/docs/ai-gateway/providers/deepseek.mdx @@ -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 diff --git a/src/content/docs/ai-gateway/providers/google-ai-studio.mdx b/src/content/docs/ai-gateway/providers/google-ai-studio.mdx index ae31e2be1231ea..028c77e4c8e757 100644 --- a/src/content/docs/ai-gateway/providers/google-ai-studio.mdx +++ b/src/content/docs/ai-gateway/providers/google-ai-studio.mdx @@ -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 diff --git a/src/content/docs/ai-gateway/providers/grok.mdx b/src/content/docs/ai-gateway/providers/grok.mdx index dcd1c0c66e1c99..f9863716e45d6d 100644 --- a/src/content/docs/ai-gateway/providers/grok.mdx +++ b/src/content/docs/ai-gateway/providers/grok.mdx @@ -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 diff --git a/src/content/docs/ai-gateway/providers/groq.mdx b/src/content/docs/ai-gateway/providers/groq.mdx index e9b918e36f9410..4c3c70be1b7047 100644 --- a/src/content/docs/ai-gateway/providers/groq.mdx +++ b/src/content/docs/ai-gateway/providers/groq.mdx @@ -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 diff --git a/src/content/docs/ai-gateway/providers/huggingface.mdx b/src/content/docs/ai-gateway/providers/huggingface.mdx index 07d17184f6395d..0e7dc355276e5f 100644 --- a/src/content/docs/ai-gateway/providers/huggingface.mdx +++ b/src/content/docs/ai-gateway/providers/huggingface.mdx @@ -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 diff --git a/src/content/docs/ai-gateway/providers/mistral.mdx b/src/content/docs/ai-gateway/providers/mistral.mdx index a5a0e235094e92..7c054394379137 100644 --- a/src/content/docs/ai-gateway/providers/mistral.mdx +++ b/src/content/docs/ai-gateway/providers/mistral.mdx @@ -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: diff --git a/src/content/docs/ai-gateway/providers/openai.mdx b/src/content/docs/ai-gateway/providers/openai.mdx index 1b4a6c11ec7568..d009813f78eba3 100644 --- a/src/content/docs/ai-gateway/providers/openai.mdx +++ b/src/content/docs/ai-gateway/providers/openai.mdx @@ -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 diff --git a/src/content/docs/ai-gateway/providers/openrouter.mdx b/src/content/docs/ai-gateway/providers/openrouter.mdx index ec0f0abd063590..cb7d348a25448f 100644 --- a/src/content/docs/ai-gateway/providers/openrouter.mdx +++ b/src/content/docs/ai-gateway/providers/openrouter.mdx @@ -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 diff --git a/src/content/docs/ai-gateway/providers/perplexity.mdx b/src/content/docs/ai-gateway/providers/perplexity.mdx index b9d1f644c0deca..d990938c3d1c42 100644 --- a/src/content/docs/ai-gateway/providers/perplexity.mdx +++ b/src/content/docs/ai-gateway/providers/perplexity.mdx @@ -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 diff --git a/src/content/docs/ai-gateway/providers/replicate.mdx b/src/content/docs/ai-gateway/providers/replicate.mdx index 290cd8b3b882c1..00d458e50bafc0 100644 --- a/src/content/docs/ai-gateway/providers/replicate.mdx +++ b/src/content/docs/ai-gateway/providers/replicate.mdx @@ -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. + ## Example ### cURL diff --git a/src/content/docs/ai-gateway/providers/vertex.mdx b/src/content/docs/ai-gateway/providers/vertex.mdx index 6995414d44ba02..4a11ece787fc47 100644 --- a/src/content/docs/ai-gateway/providers/vertex.mdx +++ b/src/content/docs/ai-gateway/providers/vertex.mdx @@ -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: diff --git a/src/content/docs/ai-gateway/providers/workersai.mdx b/src/content/docs/ai-gateway/providers/workersai.mdx index 0e79d1652990cd..79422005b577ac 100644 --- a/src/content/docs/ai-gateway/providers/workersai.mdx +++ b/src/content/docs/ai-gateway/providers/workersai.mdx @@ -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: