From 81f7657504f8e50d37acafe6141ba7c06adb266e Mon Sep 17 00:00:00 2001 From: Stan Date: Thu, 27 Aug 2026 15:53:53 +0500 Subject: [PATCH 1/5] docs: add AI/ML API provider configuration example AI/ML API (aimlapi.com) is OpenAI-compatible and already supported by LiteLLM as the 'aiml' custom_llm_provider (litellm/llms/aiml/), which this project uses for any provider outside SUPPORTED_NATIVE_PROVIDERS - no code change needed, just documenting the existing path. --- docs/edge/en/concepts/llms.mdx | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/docs/edge/en/concepts/llms.mdx b/docs/edge/en/concepts/llms.mdx index 02fb973140..bed0dc7f30 100644 --- a/docs/edge/en/concepts/llms.mdx +++ b/docs/edge/en/concepts/llms.mdx @@ -1155,6 +1155,38 @@ In this section, you'll find detailed examples that help you select, configure, uv add 'crewai[litellm]' ``` + + + Set the following environment variables in your `.env` file: + ```toml Code + AIML_API_KEY= + ``` + + Example usage in your CrewAI project: + ```python Code + llm = LLM( + model="aiml/openai/gpt-5-5", + temperature=0.7 + ) + ``` + + + AI/ML API models: + - aiml/openai/gpt-5-5 + - aiml/anthropic/claude-opus-5 + - aiml/google/gemini-3-7-flash + - aiml/deepseek/deepseek-v4-pro-0813 + + One API key for 300+ chat, image, video, audio, and embedding models + from many providers. See the [model catalog](https://docs.aimlapi.com) + for the full, current list of ids. + + + **Note:** This provider uses LiteLLM. Add it as a dependency to your project: + ```bash + uv add 'crewai[litellm]' + ``` + ## Streaming Responses From 67b932230afcfe2b6d85eada0356afcff16b7567 Mon Sep 17 00:00:00 2001 From: Stan Date: Thu, 27 Aug 2026 17:45:16 +0500 Subject: [PATCH 2/5] docs: add optional X-AIMLAPI-Source header to the AI/ML API example LLM(...) passes any unrecognized kwarg straight through to litellm.completion() via additional_params, so extra_headers works today with zero code change - verified by reading BaseLLM's model_validator (base_llm.py:286). Opt-in only: only users who copy this exact snippet send it. --- docs/edge/en/concepts/llms.mdx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/edge/en/concepts/llms.mdx b/docs/edge/en/concepts/llms.mdx index bed0dc7f30..ad35368e52 100644 --- a/docs/edge/en/concepts/llms.mdx +++ b/docs/edge/en/concepts/llms.mdx @@ -1166,10 +1166,14 @@ In this section, you'll find detailed examples that help you select, configure, ```python Code llm = LLM( model="aiml/openai/gpt-5-5", - temperature=0.7 + temperature=0.7, + extra_headers={"X-AIMLAPI-Source": "agent/crewai"} ) ``` + `extra_headers` is optional — it tags requests as coming from CrewAI for + AI/ML API's own analytics and doesn't change behavior. + AI/ML API models: - aiml/openai/gpt-5-5 From 8b98c043e8e634998e4ce98274135b7eb45a21bb Mon Sep 17 00:00:00 2001 From: StanAIML Date: Mon, 31 Aug 2026 16:06:27 +0500 Subject: [PATCH 3/5] docs(llms): sync the AI/ML API example to ar, ko and pt-BR --- docs/edge/ar/concepts/llms.mdx | 33 +++++++++++++++++++++++++++++++ docs/edge/ko/concepts/llms.mdx | 33 +++++++++++++++++++++++++++++++ docs/edge/pt-BR/concepts/llms.mdx | 33 +++++++++++++++++++++++++++++++ 3 files changed, 99 insertions(+) diff --git a/docs/edge/ar/concepts/llms.mdx b/docs/edge/ar/concepts/llms.mdx index a2b3d9653a..a10c803599 100644 --- a/docs/edge/ar/concepts/llms.mdx +++ b/docs/edge/ar/concepts/llms.mdx @@ -1012,6 +1012,39 @@ mode: "wide" uv add 'crewai[litellm]' ``` + + + عيّن متغيرات البيئة التالية في ملف `.env`: + ```toml Code + AIML_API_KEY= + ``` + + مثال الاستخدام في مشروع CrewAI: + ```python Code + llm = LLM( + model="aiml/openai/gpt-5-5", + temperature=0.7, + extra_headers={"X-AIMLAPI-Source": "agent/crewai"} + ) + ``` + + `extra_headers` اختياري — فهو يُعلّم الطلبات بأنها قادمة من CrewAI لأغراض تحليلات AI/ML API الخاصة ولا يغيّر السلوك. + + + نماذج AI/ML API: + - aiml/openai/gpt-5-5 + - aiml/anthropic/claude-opus-5 + - aiml/google/gemini-3-7-flash + - aiml/deepseek/deepseek-v4-pro-0813 + + مفتاح API واحد لأكثر من 300 نموذج للمحادثة والصور والفيديو والصوت والتضمينات من مزودين متعددين. راجع [كتالوج النماذج](https://docs.aimlapi.com) للاطلاع على القائمة الكاملة والمحدّثة للمعرّفات. + + + **ملاحظة:** يستخدم هذا المزود LiteLLM. أضفه كتبعية لمشروعك: + ```bash + uv add 'crewai[litellm]' + ``` + ## بث الاستجابات diff --git a/docs/edge/ko/concepts/llms.mdx b/docs/edge/ko/concepts/llms.mdx index 760377ac12..5cc3dc2fe6 100644 --- a/docs/edge/ko/concepts/llms.mdx +++ b/docs/edge/ko/concepts/llms.mdx @@ -755,6 +755,39 @@ CrewAI는 고유한 기능, 인증 방법, 모델 역량을 제공하는 다양 uv add 'crewai[litellm]' ``` + + + `.env` 파일에 다음 환경 변수를 설정하십시오: + ```toml Code + AIML_API_KEY= + ``` + + CrewAI 프로젝트에서의 예시 사용법: + ```python Code + llm = LLM( + model="aiml/openai/gpt-5-5", + temperature=0.7, + extra_headers={"X-AIMLAPI-Source": "agent/crewai"} + ) + ``` + + `extra_headers`는 선택 사항입니다 — 요청이 CrewAI에서 온 것임을 AI/ML API 자체 분석용으로 표시할 뿐 동작을 변경하지 않습니다. + + + AI/ML API 모델: + - aiml/openai/gpt-5-5 + - aiml/anthropic/claude-opus-5 + - aiml/google/gemini-3-7-flash + - aiml/deepseek/deepseek-v4-pro-0813 + + 하나의 API 키로 여러 제공자의 채팅, 이미지, 비디오, 오디오, 임베딩 모델 300개 이상을 사용할 수 있습니다. 전체 최신 모델 ID 목록은 [모델 카탈로그](https://docs.aimlapi.com)를 참조하세요. + + + **참고:** 이 제공자는 LiteLLM을 사용합니다. 프로젝트에 의존성으로 추가하세요: + ```bash + uv add 'crewai[litellm]' + ``` + ## 스트리밍 응답 diff --git a/docs/edge/pt-BR/concepts/llms.mdx b/docs/edge/pt-BR/concepts/llms.mdx index c4cf18ecf5..40612c9fcb 100644 --- a/docs/edge/pt-BR/concepts/llms.mdx +++ b/docs/edge/pt-BR/concepts/llms.mdx @@ -728,6 +728,39 @@ Nesta seção, você encontrará exemplos detalhados que ajudam a selecionar, co uv add 'crewai[litellm]' ``` + + + Defina as seguintes variáveis de ambiente no seu arquivo `.env`: + ```toml Code + AIML_API_KEY= + ``` + + Exemplo de uso em seu projeto CrewAI: + ```python Code + llm = LLM( + model="aiml/openai/gpt-5-5", + temperature=0.7, + extra_headers={"X-AIMLAPI-Source": "agent/crewai"} + ) + ``` + + `extra_headers` é opcional — ele marca as requisições como vindas do CrewAI para a análise interna da AI/ML API e não altera o comportamento. + + + Modelos da AI/ML API: + - aiml/openai/gpt-5-5 + - aiml/anthropic/claude-opus-5 + - aiml/google/gemini-3-7-flash + - aiml/deepseek/deepseek-v4-pro-0813 + + Uma única chave de API para mais de 300 modelos de chat, imagem, vídeo, áudio e embeddings de diversos provedores. Consulte o [catálogo de modelos](https://docs.aimlapi.com) para a lista completa e atualizada de ids. + + + **Nota:** Este provedor usa o LiteLLM. Adicione-o como dependência ao seu projeto: + ```bash + uv add 'crewai[litellm]' + ``` + ## Respostas em streaming From d6c8aedbb89d01b3be5015be140e6d7f1fa89f82 Mon Sep 17 00:00:00 2001 From: StanAIML Date: Mon, 31 Aug 2026 16:29:00 +0500 Subject: [PATCH 4/5] docs(llms): use a bash fence for the AI/ML API .env example --- docs/edge/ar/concepts/llms.mdx | 2 +- docs/edge/en/concepts/llms.mdx | 2 +- docs/edge/ko/concepts/llms.mdx | 2 +- docs/edge/pt-BR/concepts/llms.mdx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/edge/ar/concepts/llms.mdx b/docs/edge/ar/concepts/llms.mdx index a10c803599..16d76ce9ce 100644 --- a/docs/edge/ar/concepts/llms.mdx +++ b/docs/edge/ar/concepts/llms.mdx @@ -1015,7 +1015,7 @@ mode: "wide" عيّن متغيرات البيئة التالية في ملف `.env`: - ```toml Code + ```bash Code AIML_API_KEY= ``` diff --git a/docs/edge/en/concepts/llms.mdx b/docs/edge/en/concepts/llms.mdx index ad35368e52..3063d76c49 100644 --- a/docs/edge/en/concepts/llms.mdx +++ b/docs/edge/en/concepts/llms.mdx @@ -1158,7 +1158,7 @@ In this section, you'll find detailed examples that help you select, configure, Set the following environment variables in your `.env` file: - ```toml Code + ```bash Code AIML_API_KEY= ``` diff --git a/docs/edge/ko/concepts/llms.mdx b/docs/edge/ko/concepts/llms.mdx index 5cc3dc2fe6..351303cba4 100644 --- a/docs/edge/ko/concepts/llms.mdx +++ b/docs/edge/ko/concepts/llms.mdx @@ -758,7 +758,7 @@ CrewAI는 고유한 기능, 인증 방법, 모델 역량을 제공하는 다양 `.env` 파일에 다음 환경 변수를 설정하십시오: - ```toml Code + ```bash Code AIML_API_KEY= ``` diff --git a/docs/edge/pt-BR/concepts/llms.mdx b/docs/edge/pt-BR/concepts/llms.mdx index 40612c9fcb..6756b83d3b 100644 --- a/docs/edge/pt-BR/concepts/llms.mdx +++ b/docs/edge/pt-BR/concepts/llms.mdx @@ -731,7 +731,7 @@ Nesta seção, você encontrará exemplos detalhados que ajudam a selecionar, co Defina as seguintes variáveis de ambiente no seu arquivo `.env`: - ```toml Code + ```bash Code AIML_API_KEY= ``` From b46f2ff742d63e96f489d601ee3aba23a51ea5f2 Mon Sep 17 00:00:00 2001 From: StanAIML Date: Mon, 31 Aug 2026 16:40:54 +0500 Subject: [PATCH 5/5] docs(llms): import LLM in the AI/ML API example so it runs standalone --- docs/edge/ar/concepts/llms.mdx | 2 ++ docs/edge/en/concepts/llms.mdx | 2 ++ docs/edge/ko/concepts/llms.mdx | 2 ++ docs/edge/pt-BR/concepts/llms.mdx | 2 ++ 4 files changed, 8 insertions(+) diff --git a/docs/edge/ar/concepts/llms.mdx b/docs/edge/ar/concepts/llms.mdx index 16d76ce9ce..4c7157f69d 100644 --- a/docs/edge/ar/concepts/llms.mdx +++ b/docs/edge/ar/concepts/llms.mdx @@ -1021,6 +1021,8 @@ mode: "wide" مثال الاستخدام في مشروع CrewAI: ```python Code + from crewai import LLM + llm = LLM( model="aiml/openai/gpt-5-5", temperature=0.7, diff --git a/docs/edge/en/concepts/llms.mdx b/docs/edge/en/concepts/llms.mdx index 3063d76c49..3e2458d7d3 100644 --- a/docs/edge/en/concepts/llms.mdx +++ b/docs/edge/en/concepts/llms.mdx @@ -1164,6 +1164,8 @@ In this section, you'll find detailed examples that help you select, configure, Example usage in your CrewAI project: ```python Code + from crewai import LLM + llm = LLM( model="aiml/openai/gpt-5-5", temperature=0.7, diff --git a/docs/edge/ko/concepts/llms.mdx b/docs/edge/ko/concepts/llms.mdx index 351303cba4..bd4551b484 100644 --- a/docs/edge/ko/concepts/llms.mdx +++ b/docs/edge/ko/concepts/llms.mdx @@ -764,6 +764,8 @@ CrewAI는 고유한 기능, 인증 방법, 모델 역량을 제공하는 다양 CrewAI 프로젝트에서의 예시 사용법: ```python Code + from crewai import LLM + llm = LLM( model="aiml/openai/gpt-5-5", temperature=0.7, diff --git a/docs/edge/pt-BR/concepts/llms.mdx b/docs/edge/pt-BR/concepts/llms.mdx index 6756b83d3b..9b00d2ff43 100644 --- a/docs/edge/pt-BR/concepts/llms.mdx +++ b/docs/edge/pt-BR/concepts/llms.mdx @@ -737,6 +737,8 @@ Nesta seção, você encontrará exemplos detalhados que ajudam a selecionar, co Exemplo de uso em seu projeto CrewAI: ```python Code + from crewai import LLM + llm = LLM( model="aiml/openai/gpt-5-5", temperature=0.7,