Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QUESTION]: Paying for more images #509

Open
JaimeMC1 opened this issue Jan 8, 2025 · 0 comments
Open

[QUESTION]: Paying for more images #509

JaimeMC1 opened this issue Jan 8, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@JaimeMC1
Copy link

JaimeMC1 commented Jan 8, 2025

Description

Hi, I am paying for TIER 1 openai and I would like to know why i only have 1 image per minute using dall-e-3 instead of 5. Am I missing any parameters? When the parameter n is more than 1 i got an error and i dont know why when im paying it.

Steps To Reproduce

$op = new OpenAI;
$yourApiKey = 'myToken'
$client = $op->client($yourApiKey);
try
{
$response = $client->images()->create([
'prompt' => 'a cute fox',
"model" => 'dall-e-3',
'n' => 1, //more than 1 is an error
'quality' => 'hd',
'size' => '1024x1024',
'style' => 'vivid',
]);

            return json_encode($response->data);
        } 
        catch (OpenAI\Exceptions\ErrorException $e) 
        {
            return json_encode(['error' => ['code' => $e->getErrorCode()]]);
        }

OpenAI PHP Client Version

v0.70.3

PHP Version

8.3.6

Notes

No response

@JaimeMC1 JaimeMC1 added the bug Something isn't working label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant