Skip to content

XaiImageGenerationAction

Namespace: Vercel.AI.Xai

public enum XaiImageGenerationAction

Restricts what the xai.image_generation tool can do. Maps to the action argument.

View source

Auto = 0

The model can generate and edit images.

Value: XaiImageGenerationAction

View source

Edit = 2

Image editing only.

Value: XaiImageGenerationAction

View source

Generate = 1

Text-to-image generation only.

Value: XaiImageGenerationAction

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product