mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-12-22 18:41:41 +03:00
docs(docs/async_client.md): update G4F async client API guide
This commit is contained in:
parent
a174093661
commit
61e74deb0f
@ -189,7 +189,7 @@ async def main():
|
||||
|
||||
response = await client.images.async_generate(
|
||||
prompt="a white siamese cat",
|
||||
model="dall-e-3"
|
||||
model="flux"
|
||||
)
|
||||
|
||||
image_url = response.data[0].url
|
||||
@ -210,7 +210,7 @@ async def main():
|
||||
|
||||
response = await client.images.async_generate(
|
||||
prompt="a white siamese cat",
|
||||
model="dall-e-3",
|
||||
model="flux",
|
||||
response_format="b64_json"
|
||||
)
|
||||
|
||||
@ -242,7 +242,7 @@ async def main():
|
||||
)
|
||||
|
||||
task2 = client.images.async_generate(
|
||||
model="dall-e-3",
|
||||
model="flux",
|
||||
prompt="a white siamese cat"
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user