Skip to content

Commit

Permalink
Tweak image size on README
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrudall committed Jan 7, 2023
1 parent f3448a3 commit 44e17ae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,11 @@ This fine-tuned model name can then be used in completions:

### Image Generation

Generate an image using DALL·E!
Generate an image using DALL·E! The size of any generated images must be one of `256x256`, `512x512` or `1024x1024` -
if not specified the image will default to `1024x1024`.

```ruby
response = client.images.generate(parameters: { prompt: "A baby sea otter cooking pasta wearing a hat of some sort" })
response = client.images.generate(parameters: { prompt: "A baby sea otter cooking pasta wearing a hat of some sort", size: "256x256" })
puts response.dig("data", 0, "url")
=> "https://oaidalleapiprodscus.blob.core.windows.net/private/org-Rf437IxKhh..."
```
Expand All @@ -226,11 +227,10 @@ Fill in the transparent part of an image, or upload a mask with transparent sect

### Image Variations

Create n variations of an image. The size of the generated images must be one of `256x256`, `512x512` or `1024x1024` -
if not specified the image will default to `1024x1024`.
Create n variations of an image.

```ruby
response = client.images.variations(parameters: { image: "image.png", n: 2, size: "256x256" })
response = client.images.variations(parameters: { image: "image.png", n: 2 })
puts response.dig("data", 0, "url")
=> "https://oaidalleapiprodscus.blob.core.windows.net/private/org-Rf437IxKhh..."
```
Expand Down

0 comments on commit 44e17ae

Please sign in to comment.