SpyBara
Go Premium

Documentation 2026-11-24 23:00 UTC to 2026-11-25 23:57 UTC

6 files changed +349 −9. View all changes and history on the product overview
2026
Thu 26 22:58 Wed 25 23:57 Tue 24 23:00 Mon 23 23:58 Sat 21 23:57 Fri 20 23:59 Thu 19 22:59 Wed 18 22:59 Tue 17 22:57 Mon 16 23:00 Fri 13 23:58 Thu 12 22:57 Wed 11 23:57 Tue 10 23:02 Mon 9 23:02 Sun 8 22:59 Sat 7 22:59 Fri 6 23:00 Thu 5 23:00 Wed 4 22:58 Tue 3 22:58 Mon 2 23:58 Sun 1 23:00

deprecations.md +7 −7

Details

75| **Nov 30, 2026** | `/v1/prompts` and reusable prompt objects | Deprecated | Move prompt content into your application code. [Migration guide](https://developers.openai.com/api/docs/guides/prompting/migrate-from-prompt-object) | Jun 3, 2026 |75| **Nov 30, 2026** | `/v1/prompts` and reusable prompt objects | Deprecated | Move prompt content into your application code. [Migration guide](https://developers.openai.com/api/docs/guides/prompting/migrate-from-prompt-object) | Jun 3, 2026 |

76| **Nov 30, 2026** | Evals dashboard, API, and graders for eval workflows | Read-only | [Migrate to Promptfoo](https://developers.openai.com/cookbook/examples/evaluation/moving-from-openai-evals-to-promptfoo). For fine-tuning graders, see the [fine-tuning timeline](#update-to-openais-self-serve-fine-tuning). | Jun 3, 2026 |76| **Nov 30, 2026** | Evals dashboard, API, and graders for eval workflows | Read-only | [Migrate to Promptfoo](https://developers.openai.com/cookbook/examples/evaluation/moving-from-openai-evals-to-promptfoo). For fine-tuning graders, see the [fine-tuning timeline](#update-to-openais-self-serve-fine-tuning). | Jun 3, 2026 |

77| **Nov 30, 2026** | Agent Builder | Deprecated | Agents SDK or ChatGPT Workspace Agents. [Migration guide](https://developers.openai.com/api/docs/guides/agent-builder/migrate-from-agent-builder). ChatKit remains available. | Jun 3, 2026 |77| **Nov 30, 2026** | Agent Builder | Deprecated | Agents SDK or ChatGPT Workspace Agents. [Migration guide](https://developers.openai.com/api/docs/guides/agent-builder/migrate-from-agent-builder). ChatKit remains available. | Jun 3, 2026 |

78| **Jan 6, 2027** | Self-serve fine-tuning job creation | Restricted access | See the [fine-tuning timeline](#update-to-openais-self-serve-fine-tuning). | May 7, 2026 |78| **Dec 15, 2026** | Self-serve fine-tuning job creation | Restricted access | See the [fine-tuning timeline](#update-to-openais-self-serve-fine-tuning). | May 7, 2026 |

79| **Jan 11, 2027** | GPT-5.2, GPT-5.4, and GPT-5.4 mini with EU data residency and `service_tier: fast` or `priority` | Deprecated | The same models with EU data residency and Standard processing (`service_tier: default`), or the [GPT-6.2 model family](https://developers.openai.com/api/docs/guides/latest-model). | Nov 18, 2026 |79| **Jan 11, 2027** | GPT-5.2, GPT-5.4, and GPT-5.4 mini with EU data residency and `service_tier: fast` or `priority` | Deprecated | The same models with EU data residency and Standard processing (`service_tier: default`), or the [GPT-6.2 model family](https://developers.openai.com/api/docs/guides/latest-model). | Nov 18, 2026 |

80| **Feb 26, 2027** | `/v1/audio/translations` | Deprecated | [`/v1/realtime/translations`](https://developers.openai.com/api/docs/guides/realtime-translation) | Aug 26, 2026 |80| **Feb 26, 2027** | `/v1/audio/translations` | Deprecated | [`/v1/realtime/translations`](https://developers.openai.com/api/docs/guides/realtime-translation) | Aug 26, 2026 |

81 81 


107 107 

108## Update to OpenAI’s self-serve fine-tuning108## Update to OpenAI’s self-serve fine-tuning

109 109 

110On May 7th, 2026, we notified developers using OpenAI’s self-serve fine-tuning platform of updates to availability.110We previously announced January 6, 2027, as the cutoff for creating new self-serve fine-tuning jobs. We’re moving that cutoff up to **December 15, 2026**.

111 111 

112Inference on fine-tuned models will continue to be available until the base models are deprecated.112You can continue to run inference on each existing fine-tuned model until OpenAI retires its underlying base model.

113 113 

114| Date | Update |114| Date | Update |

115| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |115| ------------ | ---------------------------------------------------------------------------------------------------------------------- |

116| May 7, 2026 | Creating fine-tuning jobs or training is not available to organizations that have not previously run fine-tuning. |116| May 7, 2026 | Organizations that have never run a fine-tuning job can no longer create one. |

117| July 2, 2026 | Creating fine-tuning jobs is no longer available to organizations that have not run inference on a fine-tuned model in the past 60 days. |117| July 2, 2026 | Organizations that haven’t run inference on a fine-tuned model in the past 60 days can no longer create training jobs. |

118| Jan 6, 2027 | Active existing customers will no longer be able to create new fine-tuning jobs on this date. Inference on fine-tuned models will be disabled only when the underlying base model is deprecated. |118| Dec 15, 2026 | Starting on this date, no organization can create new self-serve fine-tuning jobs. |

119 119 

120 120 

121 121 

Details

263});263});

264```264```

265 265 

266```python

267session_config = {

268 "session": {

269 "type": "realtime",

270 "model": "gpt-realtime-2.1-mini",

271 "instructions": "Read the user's text aloud without adding commentary.",

272 "output_modalities": ["audio"],

273 "audio": {

274 "output": {

275 "voice": {"id": "voice_123abc"},

276 },

277 },

278 },

279}

280```

281 

266```go282```go

267sessionConfig := map[string]any{283sessionConfig := map[string]any{

268 "session": map[string]any{284 "session": map[string]any{

Details

6 6 

7OpenAI is winding down the fine-tuning platform. The platform is no longer7OpenAI is winding down the fine-tuning platform. The platform is no longer

8 accessible to new users. Eligible existing customers can create training jobs8 accessible to new users. Eligible existing customers can create training jobs

9 until January 6, 2027, unless the base model shuts down earlier.9 until December 15, 2026, unless the base model shuts down earlier.

10 10

11 11 

12 Fine-tuned models remain available for inference until their base model shuts12 Fine-tuned models remain available for inference until their base model shuts

Details

712}712}

713```713```

714 714 

715```csharp

716using System.Globalization;

717using System.Security.Cryptography;

718using System.Text;

719using System.Text.Json;

720 

721namespace OpenAI.Docs.Examples.Psp;

722 

723internal static class RecoverRecordExample

724{

725 

726private static readonly UTF8Encoding Utf8 = new(false, true);

727 

728 // Supply the already decrypted capsule and trusted original registration.

729 // Keep the RSA private key in the cloud. Return the exact recovered UTF-8 text.

730 internal static string RecoverRecord(byte[] bundleJson, byte[] capsule, string originalKeyId, string publicPem)

731 {

732 Dictionary<string, object?> bundle = Object(Parse(bundleJson));

733 Dictionary<string, object?> record = Object(Field(bundle, "protected_record"));

734 Dictionary<string, object?> access = Object(Field(bundle, "customer_access"));

735 Require(Field(bundle, "bundle_version") is 1L && Field(access, "version") is 1L,

736 "Unsupported bundle or capsule version");

737 Require(Text(record, "version") == "v4"

738 && Text(record, "algorithm") == "HPKE-v1-DHKEM_P256_HKDF_SHA256-EXPORT_ONLY-AES256_GCM"

739 && Text(access, "algorithm") == "RSA-OAEP-256"

740 && Text(access, "customer_key_id") == originalKeyId, "Wrong schema or original key");

741 

742 ReadOnlySpan<char> pem = publicPem.AsSpan().Trim();

743 Require(PemEncoding.TryFind(pem, out PemFields fields)

744 && fields.Location.GetOffsetAndLength(pem.Length) == (0, pem.Length), "Expected one public key");

745 string label = pem[fields.Label].ToString();

746 Require(label is "PUBLIC KEY" or "RSA PUBLIC KEY", "Expected an RSA public key");

747 using RSA rsa = RSA.Create();

748 rsa.ImportFromPem(pem);

749 Require(rsa.KeySize == 3072, "Expected RSA-3072");

750 Require(Decode(Text(access, "recovery_secret")).Length == 384, "Wrong RSA ciphertext length");

751 Require(Equal(Decode(Text(access, "customer_public_key_fingerprint")),

752 SHA256.HashData(rsa.ExportSubjectPublicKeyInfo())), "Wrong key fingerprint");

753 

754 byte[] runtimePoint = Decode(Text(record, "safety_review_runtime_public_key"));

755 Require(runtimePoint.Length == 65 && runtimePoint[0] == 4, "Invalid P-256 encoding");

756 using ECDiffieHellman runtime = ECDiffieHellman.Create(new ECParameters

757 {

758 Curve = ECCurve.NamedCurves.nistP256,

759 Q = new ECPoint { X = runtimePoint[1..33], Y = runtimePoint[33..65] }

760 });

761 byte[] thumbprint = SHA256.HashData(Canonical(new Dictionary<string, object?>

762 {

763 ["crv"] = "P-256",

764 ["kty"] = "EC",

765 ["x"] = Encode(runtimePoint[1..33]),

766 ["y"] = Encode(runtimePoint[33..65])

767 }));

768 Require(Equal(Decode(Text(record, "key_thumbprint")), thumbprint), "Wrong runtime key");

769 byte[] nonce = Decode(Text(record, "nonce"));

770 byte[] ciphertext = Decode(Text(record, "ciphertext"));

771 Require(nonce.Length == 12 && ciphertext.Length >= 16, "Invalid AES-GCM parameters");

772 byte[] binding = SHA256.HashData(Canonical(new Dictionary<string, object?>

773 {

774 ["purpose"] = "OpenAI-PSP-v4/customer-recovery-binding",

775 ["bundle_version"] = 1L,

776 ["record"] = record,

777 ["recovery_header"] = Without(access, "recovery_secret")

778 }));

779 Require(capsule.Length == 72 && Equal(capsule.AsSpan(0, 8), "PSPv4\0\0\x01"u8)

780 && Equal(capsule.AsSpan(40, 32), binding), "Invalid recovery capsule binding");

781 

782 byte[] scalar = capsule[8..40];

783 byte[]? key = null;

784 byte[] plaintext = new byte[ciphertext.Length - 16];

785 try

786 {

787 byte[] order = Convert.FromHexString(

788 "FFFFFFFF00000000FFFFFFFFFFFFFFFFBCE6FAADA7179E84F3B9CAC2FC632551");

789 Require(!Equal(scalar, new byte[32]) && scalar.AsSpan().SequenceCompareTo(order) < 0,

790 "Invalid P-256 private scalar");

791 using ECDiffieHellman ephemeral = ECDiffieHellman.Create(new ECParameters

792 {

793 Curve = ECCurve.NamedCurves.nistP256,

794 D = scalar

795 });

796 ECParameters parameters = ephemeral.ExportParameters(false);

797 byte[] encapsulation = Join([4], parameters.Q.X!, parameters.Q.Y!);

798 Require(Equal(Decode(Text(record, "encrypted_dek")), encapsulation), "Wrong recovered scalar");

799 byte[] aad = Canonical(Without(record, "ciphertext"));

800 key = PayloadKey(ephemeral, runtime.PublicKey, encapsulation, runtimePoint, aad);

801 using AesGcm cipher = new(key, 16);

802 cipher.Decrypt(nonce, ciphertext.AsSpan(0, ciphertext.Length - 16),

803 ciphertext.AsSpan(ciphertext.Length - 16), plaintext, aad);

804 return Utf8.GetString(plaintext);

805 }

806 finally

807 {

808 CryptographicOperations.ZeroMemory(scalar);

809 if (key is not null) CryptographicOperations.ZeroMemory(key);

810 CryptographicOperations.ZeroMemory(plaintext);

811 }

812 }

813 

814 // RFC 9180 base-mode DHKEM(P-256, HKDF-SHA256), export-only AEAD.

815 // Native ECDH and HKDF implement the primitives; recovery reuses the original scalar.

816 internal static byte[] PayloadKey(ECDiffieHellman ephemeral, ECDiffieHellmanPublicKey runtime,

817 byte[] encapsulation, byte[] runtimePoint, byte[] aad)

818 {

819 List<byte[]> secrets = [];

820 byte[] Remember(byte[] value) { secrets.Add(value); return value; }

821 byte[] Extract(byte[] suite, string label, byte[] input, byte[] salt)

822 {

823 byte[] labeled = Join("HPKE-v1"u8.ToArray(), suite, Utf8.GetBytes(label), input);

824 try { return Remember(HKDF.Extract(HashAlgorithmName.SHA256, labeled, salt)); }

825 finally { CryptographicOperations.ZeroMemory(labeled); }

826 }

827 byte[] Expand(byte[] suite, string label, byte[] secret, byte[] info)

828 {

829 byte[] labeled = Join([0, 32], "HPKE-v1"u8.ToArray(), suite, Utf8.GetBytes(label), info);

830 try { return Remember(HKDF.Expand(HashAlgorithmName.SHA256, secret, 32, labeled)); }

831 finally { CryptographicOperations.ZeroMemory(labeled); }

832 }

833 try

834 {

835 byte[] kem = [0x4b, 0x45, 0x4d, 0, 0x10];

836 byte[] dh = Remember(ephemeral.DeriveRawSecretAgreement(runtime));

837 byte[] prk = Extract(kem, "eae_prk", dh, []);

838 byte[] shared = Expand(kem, "shared_secret", prk, Join(encapsulation, runtimePoint));

839 byte[] suite = [0x48, 0x50, 0x4b, 0x45, 0, 0x10, 0, 1, 0xff, 0xff];

840 byte[] schedule = Join([0], Extract(suite, "psk_id_hash", [], []),

841 Extract(suite, "info_hash", "OpenAI-PSP-v4/HPKE-export"u8.ToArray(), []));

842 byte[] exporter = Expand(suite, "exp", Extract(suite, "secret", [], shared), schedule);

843 byte[] key = Expand(suite, "sec", exporter,

844 Join("OpenAI-PSP-v4/payload-key"u8.ToArray(), SHA256.HashData(aad)));

845 return key.ToArray();

846 }

847 finally

848 {

849 foreach (byte[] secret in secrets) CryptographicOperations.ZeroMemory(secret);

850 }

851 }

852 

853 // This example supports a strict RFC 8785 subset: numbers must have integer

854 // JSON spelling and lie within +/-9007199254740991. Reject fractional,

855 // exponent and unsafe-integer inputs instead of approximating JCS numbers.

856 // Otherwise-valid bundles with unsupported numeric extension fields are rejected.

857 // Preserve Unicode exactly, reject duplicate names and malformed UTF-8 or

858 // surrogate pairs, and sort names by UTF-16 ordinal code units.

859 internal static object? Parse(byte[] json)

860 {

861 _ = Utf8.GetString(json);

862 using JsonDocument document = JsonDocument.Parse(json, new JsonDocumentOptions { MaxDepth = 128 });

863 return ConvertValue(document.RootElement);

864 }

865 

866 private static object? ConvertValue(JsonElement value)

867 {

868 switch (value.ValueKind)

869 {

870 case JsonValueKind.Object:

871 Dictionary<string, object?> fields = new(StringComparer.Ordinal);

872 foreach (JsonProperty property in value.EnumerateObject())

873 {

874 CheckUnicode(property.Name);

875 Require(fields.TryAdd(property.Name, ConvertValue(property.Value)), "Duplicate JSON key");

876 }

877 return fields;

878 case JsonValueKind.Array:

879 return value.EnumerateArray().Select(ConvertValue).ToArray();

880 case JsonValueKind.String:

881 string text = value.GetString()!;

882 CheckUnicode(text);

883 return text;

884 case JsonValueKind.Number:

885 string raw = value.GetRawText();

886 Require(!raw.Contains('.') && !raw.Contains('e') && !raw.Contains('E')

887 && value.TryGetInt64(out long _), "Only safe integer numbers are supported");

888 long number = value.GetInt64();

889 Require(number is >= -9007199254740991L and <= 9007199254740991L, "Unsafe integer");

890 return number;

891 case JsonValueKind.True: return true;

892 case JsonValueKind.False: return false;

893 case JsonValueKind.Null: return null;

894 default: throw new ArgumentException("Unsupported JSON value");

895 }

896 }

897 

898 internal static byte[] Canonical(object? value)

899 {

900 StringBuilder text = new();

901 void WriteString(string item)

902 {

903 CheckUnicode(item);

904 text.Append('"');

905 foreach (char c in item)

906 {

907 text.Append(c switch

908 {

909 '"' => "\\\"",

910 '\\' => "\\\\",

911 '\b' => "\\b",

912 '\t' => "\\t",

913 '\n' => "\\n",

914 '\f' => "\\f",

915 '\r' => "\\r",

916 < ' ' => "\\u" + ((int)c).ToString("x4", CultureInfo.InvariantCulture),

917 _ => c.ToString()

918 });

919 }

920 text.Append('"');

921 }

922 void Write(object? item)

923 {

924 switch (item)

925 {

926 case null: text.Append("null"); break;

927 case string s: WriteString(s); break;

928 case bool b: text.Append(b ? "true" : "false"); break;

929 case long n when n is >= -9007199254740991L and <= 9007199254740991L:

930 text.Append(n.ToString(CultureInfo.InvariantCulture)); break;

931 case Dictionary<string, object?> fields:

932 text.Append('{');

933 bool first = true;

934 foreach (string name in fields.Keys.Order(StringComparer.Ordinal))

935 {

936 if (!first) text.Append(',');

937 first = false;

938 WriteString(name); text.Append(':'); Write(fields[name]);

939 }

940 text.Append('}'); break;

941 case object?[] items:

942 text.Append('[');

943 for (int i = 0; i < items.Length; i++)

944 {

945 if (i > 0) text.Append(',');

946 Write(items[i]);

947 }

948 text.Append(']'); break;

949 default: throw new ArgumentException("Outside the supported canonical JSON subset");

950 }

951 }

952 Write(value);

953 return Utf8.GetBytes(text.ToString());

954 }

955 

956 private static void CheckUnicode(string value)

957 {

958 for (int i = 0; i < value.Length; i++)

959 {

960 if (!char.IsSurrogate(value[i])) continue;

961 Require(char.IsHighSurrogate(value[i]) && i + 1 < value.Length

962 && char.IsLowSurrogate(value[++i]), "Malformed Unicode");

963 }

964 }

965 

966 private static Dictionary<string, object?> Object(object? value) =>

967 value as Dictionary<string, object?> ?? throw new ArgumentException("Expected an object");

968 private static object? Field(Dictionary<string, object?> value, string name) =>

969 value.TryGetValue(name, out object? item) ? item : throw new ArgumentException("Missing field");

970 private static string Text(Dictionary<string, object?> value, string name) =>

971 Field(value, name) as string ?? throw new ArgumentException("Expected text");

972 private static Dictionary<string, object?> Without(Dictionary<string, object?> value, string name) =>

973 value.Where(pair => pair.Key != name).ToDictionary(pair => pair.Key, pair => pair.Value, StringComparer.Ordinal);

974 private static string Encode(byte[] value) => Convert.ToBase64String(value).TrimEnd('=').Replace('+', '-').Replace('/', '_');

975 private static byte[] Decode(string value)

976 {

977 Require(value.All(c => char.IsAsciiLetterOrDigit(c) || c is '-' or '_'), "Invalid base64url");

978 byte[] bytes = Convert.FromBase64String(value.Replace('-', '+').Replace('_', '/') + new string('=', (4 - value.Length % 4) % 4));

979 Require(Encode(bytes) == value, "Noncanonical base64url");

980 return bytes;

981 }

982 private static bool Equal(ReadOnlySpan<byte> left, ReadOnlySpan<byte> right) =>

983 CryptographicOperations.FixedTimeEquals(left, right);

984 private static byte[] Join(params byte[][] arrays)

985 {

986 byte[] result = new byte[arrays.Sum(array => array.Length)];

987 int offset = 0;

988 foreach (byte[] array in arrays) { array.CopyTo(result, offset); offset += array.Length; }

989 return result;

990 }

991 private static void Require(bool condition, string message)

992 {

993 if (!condition) throw new ArgumentException(message);

994 }

995}

996```

997 

715```ruby998```ruby

716require "base64"999require "base64"

717require "digest"1000require "digest"

Details

4149const json = zodResponseFormat(finalSchema, "final_schema");4149const json = zodResponseFormat(finalSchema, "final_schema");

4150```4150```

4151 4151 

4152```python

4153import json

4154from typing import Annotated, Literal

4155 

4156from pydantic import BaseModel, ConfigDict, Field, RootModel

4157 

4158 

4159class BaseResponseSchema(BaseModel):

4160 model_config = ConfigDict(extra="forbid")

4161 status: Literal["success"]

4162 data: str

4163 

4164 

4165class UnsuccessfulResponseSchema(BaseModel):

4166 model_config = ConfigDict(extra="forbid")

4167 status: Literal["error"]

4168 error: str

4169 

4170 

4171class FinalSchema(

4172 RootModel[

4173 Annotated[

4174 BaseResponseSchema | UnsuccessfulResponseSchema,

4175 Field(discriminator="status"),

4176 ]

4177 ]

4178):

4179 model_config = ConfigDict(title="FinalSchema")

4180 

4181 

4182def main() -> None:

4183 # Invalid for Structured Outputs: the root is a union, not an object.

4184 # Pydantic can describe it locally; schema generation does not establish

4185 # service acceptance. This example makes no API request.

4186 print(json.dumps(FinalSchema.model_json_schema()))

4187 

4188 

4189if __name__ == "__main__":

4190 main()

4191```

4192 

4152```go4193```go

4153package main4194package main

4154 4195 

Details

6 6 

7OpenAI is winding down the fine-tuning platform. The platform is no longer7OpenAI is winding down the fine-tuning platform. The platform is no longer

8 accessible to new users. Eligible existing customers can create training jobs8 accessible to new users. Eligible existing customers can create training jobs

9 until January 6, 2027, unless the base model shuts down earlier.9 until December 15, 2026, unless the base model shuts down earlier.

10 10

11 11 

12 Fine-tuned models remain available for inference until their base model shuts12 Fine-tuned models remain available for inference until their base model shuts