Skip to content
Lucas Lessa
Voltar para as notícias
DatabricksAtualizaçãoImpacto: Médio

xAI Grok 4.7 Model Now Available on Databricks Unity Gateway

The xAI Grok 4.7 model is now available for use on Unity Gateway via Foundation Model APIs in pay-per-token mode.

O que mudou

The xAI Grok 4.7 model has been integrated into Unity Gateway and can be accessed through Databricks Foundation Model APIs using pay-per-token billing.### Use casesImagine you need to integrate an advanced language model directly into your applications via Databricks without managing custom inference infrastructure. With this update, you can:- Query the xAI Grok 4.7 model through Unity Gateway.- Run pay-per-token workloads within your workspace.- Use the model serving name for inference requests.### How to use```python import os from openai import OpenAI

client = OpenAI( api_key=os.environ.get("DATABRICKS_TOKEN"), base_url="https://.databricks.com/serving-endpoints" )

response = client.chat.completions.create( model="grok-4-7", messages=[ {"role": "user", "content": "Explain data engineering in a few words."} ] ) print(response.choices[0].message.content)

1. Initializes the OpenAI client pointing to the Databricks serving endpoints URL.
2. Sets the model parameter to "grok-4-7" to route the request.
3. Sends the prompt message.
4. Prints the generated response content from the model.### Limitations and requirementsCustomers are responsible for ensuring compliance with applicable xAI terms and Databricks acceptable use policies for Foundation Model APIs.
Ver nota oficial do Databricks

xAI Grok 4.7 is now available on Unity Gateway

Resumo e explicação gerados por IA a partir da release note oficial. Em caso de dúvida, a documentação oficial da plataforma prevalece.

Relacionadas