FireworksImageModel
Namespace: Vercel.AI.Fireworks
public sealed class FireworksImageModel : IImageModelFireworks image model. Sync models return bytes. Kontext models poll get_result.
Inheritance: object
Implements: IImageModel
Constructors
Section titled “Constructors”FireworksImageModel(FireworksProvider, string)
Section titled “FireworksImageModel(FireworksProvider, string)”public FireworksImageModel(FireworksProvider provider, string modelId)Creates an image model.
Parameters
| Name | Type | Description |
|---|---|---|
provider |
FireworksProvider | |
modelId |
string |
Properties
Section titled “Properties”public Func<DateTimeOffset>? Clock { get; set; }Clock used for the response timestamp. Defaults to UTC now.
Value: Func<DateTimeOffset>
MaxImagesPerCall
Section titled “MaxImagesPerCall”public int MaxImagesPerCall { get; }Fireworks returns one image per call.
Value: int
ModelId
Section titled “ModelId”public string ModelId { get; }Model id.
Value: string
PollInterval
Section titled “PollInterval”public TimeSpan PollInterval { get; set; }Delay between async polls.
Value: TimeSpan
PollTimeout
Section titled “PollTimeout”public TimeSpan PollTimeout { get; set; }How long async polling may run.
Value: TimeSpan
Provider
Section titled “Provider”public string Provider { get; }Provider id.
Value: string
Methods
Section titled “Methods”DoGenerateAsync(ImageCallOptions, CancellationToken)
Section titled “DoGenerateAsync(ImageCallOptions, CancellationToken)”public Task<ImageGenerationResult> DoGenerateAsync(ImageCallOptions options, CancellationToken cancellationToken)Generates images. Maps to doGenerate on an image model.
Parameters
| Name | Type | Description |
|---|---|---|
options |
ImageCallOptions | |
cancellationToken |
CancellationToken |
Returns: Task<ImageGenerationResult>
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product