Function openai_flows::create_image

source ·
pub async fn create_image(
    account: FlowsAccount,
    params: ImageRequest
) -> Result<Vec<String>, String>
Expand description

Create image for the provided prompt and parameters.

account is an FlowsAccount used for picking your tied OpenAI API key.

params is a ImageRequest object.

If you have not connected your OpenAI account with Flows.network platform, you will receive an error in the flow’s building log or running log.