Grok Imagine Image is good. These would like a word anyway.
Grok Imagine Image is good. These would like a word anyway.
xAI's state-of-the-art image generation model, combining Grok's strong prompt understanding with high-quality visual output. Produces detailed, creative images with excellent prompt adherence.
fromimport openai OpenAI
client = OpenAI(
"https://api.x.ai/v1" base_url=,
"$XAI_API_KEY" api_key=,
)
response = client.chat.completions.create(
"grok-imagine-image" model=,
"role""user""content""Hello!" messages=[{: , : }],
)
print(response.choices[0].message.content)Set XAI_API_KEY with your xAI API key from console.x.ai.
17 outputs from Grok Imagine Image
xAI's state-of-the-art image generation model, combining Grok's strong prompt understanding with high-quality visual output. Produces detailed, creative images with excellent prompt adherence.
fromimport openai OpenAI
client = OpenAI(
"https://api.x.ai/v1" base_url=,
"$XAI_API_KEY" api_key=,
)
response = client.chat.completions.create(
"grok-imagine-image" model=,
"role""user""content""Hello!" messages=[{: , : }],
)
print(response.choices[0].message.content)Set XAI_API_KEY with your xAI API key from console.x.ai.
17 outputs from Grok Imagine Image