$parameters * * @deprecated OpenAI has deprecated this endpoint and will stop working by January 4, 2024. * https://openai.com/blog/gpt-4-api-general-availability#deprecation-of-the-edits-api */ public function create(array $parameters): CreateResponse { $payload = Payload::create('edits', $parameters); /** @var Response, usage: array{prompt_tokens: int, completion_tokens: int, total_tokens: int}}> $response */ $response = $this->transporter->requestObject($payload); return CreateResponse::from($response->data(), $response->meta()); } }