createKey method

Implementation

Future<OpenRouterCreatedApiKey> createKey(
  OpenRouterCreateApiKeyRequest request,
) async {
  final response = await _send(
    method: 'POST',
    path: '/keys',
    body: request.toMap(),
    expectedStatusCodes: const {201},
  );

  return OpenRouterCreatedApiKey.fromMap(response);
}