跳到正文
原文
xAI:News(网页)·· 3 小时前精选AI 评分79

xAI 开放 Grok API 公测,每月送 $25 免费额度

API Public Beta Starting today, developers can build on our Grok foundation models using our newly released API. We will run a public beta program until the end of 2024 during which everyone will get $25 of free API credits per month. Nov 4, 2024

AI 导读

xAI 宣布 API 即刻可用,开发者可通过 API 访问 Grok 系列基础模型,公测持续到 2024 年底,期间每人每月获得 $25 免费 API 额度。公测首发预览版模型 grok-beta,上下文长度 128,000 tokens,支持 function calling 和 system prompts;可处理图像的多模态 vision 版本将于下周发布。

推荐理由

xAI 官方公告,API 与 OpenAI、Anthropic 兼容可降低迁移成本,每月 $25 免费额度信息对开发者有直接参考价值。

正文 · 原文

We are happy to announce the immediate availability of our API, which gives developers programmatic access to our Grok series of foundation models. To get started, head to console.x.ai and sign up to create an account. We are excited to see what developers build using Grok.

Models

We are kicking off our public beta with a preview of a new Grok model that is currently in the final stages of development. The model – released under the provisional name grok-beta – has a context length of 128,000 tokens and also supports function calling and system prompts. We will release more information about the model shortly.

In addition to the text-only version of the model grok-beta, we will also release a multi-modal version that can ingest images. The vision model will be available next week.

Free credits

We will run a public beta program throughout the end of the year. Everyone will get $25 of free API credits per month to test the API and get started using Grok.

Anyone who has purchased prepaid credits so far will get the equivalent amount of free monthly credits for every month until the end of the year. For example, if you purchased $50 of prepaid credits already, you will now have $25 + $50 of additional free credits in November and December.

API

To learn more about our API, check out our documentation at docs.x.ai. Our REST API is fully compatible with the ones offered by OpenAI and Anthropic. This simplifies migration. For example, if you’re currently using the OpenAI Python SDK, you can start using Grok by simply changing the base_url to https://api.x.ai/v1 and using your xAI API key that you created on console.x.ai.

来源:xAI:News(网页) · x.ai